提交 1dcd96c4 编写于 作者: H Haowen Bai 提交者: Martin K. Petersen

scsi: fnic: Remove redundant NULL check

Fix the following warning reported by coccicheck:

drivers/scsi/fnic/fnic_debugfs.c:90:2-7: WARNING: NULL check before some freeing functions is not needed.

Link: https://lore.kernel.org/r/1647309219-12772-1-git-send-email-baihaowen@meizu.comSigned-off-by: NHaowen Bai <baihaowen@meizu.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 93de8df2
...@@ -86,8 +86,7 @@ void fnic_debugfs_terminate(void) ...@@ -86,8 +86,7 @@ void fnic_debugfs_terminate(void)
debugfs_remove(fnic_trace_debugfs_root); debugfs_remove(fnic_trace_debugfs_root);
fnic_trace_debugfs_root = NULL; fnic_trace_debugfs_root = NULL;
if (fc_trc_flag) vfree(fc_trc_flag);
vfree(fc_trc_flag);
} }
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册