mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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/[email protected] Signed-off-by: Wang Qing <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
1 parent
690209d5eb
commit
3ba9f38ed4
1 file changed
+1
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user