Commit 3ba9f38e authored by Wang Qing's avatar Wang Qing Committed by Martin K. Petersen

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.comSigned-off-by: default avatarWang Qing <wangqing@vivo.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 690209d5
...@@ -58,8 +58,7 @@ int fnic_debugfs_init(void) ...@@ -58,8 +58,7 @@ int fnic_debugfs_init(void)
fnic_trace_debugfs_root); fnic_trace_debugfs_root);
/* Allocate memory to structure */ /* Allocate memory to structure */
fc_trc_flag = (struct fc_trace_flag_type *) fc_trc_flag = vmalloc(sizeof(struct fc_trace_flag_type));
vmalloc(sizeof(struct fc_trace_flag_type));
if (fc_trc_flag) { if (fc_trc_flag) {
fc_trc_flag->fc_row_file = 0; fc_trc_flag->fc_row_file = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment