]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: fnic: Remove redundant NULL check
authorHaowen Bai <baihaowen@meizu.com>
Tue, 15 Mar 2022 01:53:39 +0000 (09:53 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:05 +0000 (23:23 -0400)
commita2ff709dd45a340b441ce9802ec63899f3b1db07
tree8ecc6bfc2e0302b9ab2e87d33076b0cae4322344
parent26927a9f4c2d46f7d409864f5085ce8a1b817b9e
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>
drivers/scsi/fnic/fnic_debugfs.c