OSDN Git Service

scsi: lpfc: Fix coverity errors on NULL pointer checks
authorJames Smart <jsmart2021@gmail.com>
Sun, 22 Sep 2019 03:58:57 +0000 (20:58 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 1 Oct 2019 02:07:10 +0000 (22:07 -0400)
commit43bfea1bffb6b01089c2fe483ede1b036e166579
tree34efca39a5d90bfaeb12b20f98d102030ff89f46
parent51f8e43ed355d30b3c93293077ecb0c0afac3799
scsi: lpfc: Fix coverity errors on NULL pointer checks

Coverity flagged several scenarios where checking of null pointer values
wasn't consistent.

Fix the code to that be consistent on checking.

Link: https://lore.kernel.org/r/20190922035906.10977-12-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_nvmet.c
drivers/scsi/lpfc/lpfc_scsi.c
drivers/scsi/lpfc/lpfc_sli.c