scsi: lpfc: remove an unnecessary NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Aug 2018 13:56:33 +0000 (16:56 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 30 Aug 2018 11:33:55 +0000 (07:33 -0400)
commit26c724a690a1cd10575365da90b5b4040278a6c5
tree48864f4dad1d53425c275905a42e9a17b676f840
parent165ee6215062f98ac8bf8c62865343cf3306a3c8
scsi: lpfc: remove an unnecessary NULL check

Smatch complains about this code:

    drivers/scsi/lpfc/lpfc_scsi.c:1053 lpfc_get_scsi_buf_s4()
    warn: variable dereferenced before check 'lpfc_cmd' (see line 1039)

Fortunately the NULL check isn't required so I have removed it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_scsi.c