scsi: lpfc: Remove unnecessary null check before kfree
authorYueHaibing <yuehaibing@huawei.com>
Thu, 11 Jul 2019 14:10:37 +0000 (22:10 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 22 Jul 2019 20:44:07 +0000 (16:44 -0400)
commit70a51d8c53176080e82b2aef050f820ccdd4b3f8
tree575d6ca78773b12b405c7f350713f20f58f7bd2d
parent9e5470fe2d61bd87c27c7722099bafab277f81ec
scsi: lpfc: Remove unnecessary null check before kfree

A null check before a kfree is redundant, so remove it.  This is detected
by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_bsg.c