summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-03-15 09:53:39 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-25 23:23:05 -0400
commit1dcd96c4d0b726df1155066126e029cb17a6dd3d (patch)
tree8ecc6bfc2e0302b9ab2e87d33076b0cae4322344 /drivers/scsi/fnic
parent93de8df20537697cc2e74ac42b61e94b5ef5a1eb (diff)
downloadlinux-1dcd96c4d0b726df1155066126e029cb17a6dd3d.tar.bz2
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.com Signed-off-by: Haowen Bai <baihaowen@meizu.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 e7326505cabb..866b4c983ace 100644
--- a/drivers/scsi/fnic/fnic_debugfs.c
+++ b/drivers/scsi/fnic/fnic_debugfs.c
@@ -86,8 +86,7 @@ void fnic_debugfs_terminate(void)
debugfs_remove(fnic_trace_debugfs_root);
fnic_trace_debugfs_root = NULL;
- if (fc_trc_flag)
- vfree(fc_trc_flag);
+ vfree(fc_trc_flag);
}
/*