summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2021-03-12 03:18:19 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2021-03-25 03:33:37 +0100
commit3ba9f38ed43de60ca93afd2aaf3d27572e0352eb (patch)
treeb9582209896e6eb325a57501204818e47a467622 /drivers/scsi/fnic
parentscsi: message: fusion: Remove unnecessary cast (diff)
downloadlinux-3ba9f38ed43de60ca93afd2aaf3d27572e0352eb.tar.xz
linux-3ba9f38ed43de60ca93afd2aaf3d27572e0352eb.zip
scsi: fnic: Remove unnecessary cast
Fix the following coccicheck warning: WARNING: casting value returned by memory allocation function is useless. Link: https://lore.kernel.org/r/1615515500-946-1-git-send-email-wangqing@vivo.com Signed-off-by: Wang Qing <wangqing@vivo.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic')
-rw-r--r--drivers/scsi/fnic/fnic_debugfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/fnic/fnic_debugfs.c b/drivers/scsi/fnic/fnic_debugfs.c
index 6c049360f136..e7326505cabb 100644
--- a/drivers/scsi/fnic/fnic_debugfs.c
+++ b/drivers/scsi/fnic/fnic_debugfs.c
@@ -58,8 +58,7 @@ int fnic_debugfs_init(void)
fnic_trace_debugfs_root);
/* Allocate memory to structure */
- fc_trc_flag = (struct fc_trace_flag_type *)
- vmalloc(sizeof(struct fc_trace_flag_type));
+ fc_trc_flag = vmalloc(sizeof(struct fc_trace_flag_type));
if (fc_trc_flag) {
fc_trc_flag->fc_row_file = 0;