scsi: mpt3sas: Remove NULL check before freeing function
authorJason Yan <yanaijie@huawei.com>
Sat, 18 Apr 2020 09:58:50 +0000 (17:58 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 22:21:15 +0000 (18:21 -0400)
commitbaf3fbf26cc003eaf7612ea215d6cc191bd6f850
treea1f1afa71e6f3767849c0a44125da5865aa0c374
parent2e9ef0fcac01a871ab1afcaab9398beeb4d76ea9
scsi: mpt3sas: Remove NULL check before freeing function

Fix the following coccicheck warning:

drivers/scsi/mpt3sas/mpt3sas_base.c:4906:3-19: WARNING: NULL check
before some freeing functions is not needed.

Link: https://lore.kernel.org/r/20200418095850.34883-1-yanaijie@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c