scsi: lpfc: remove redundant null check on eqe
authorColin Ian King <colin.king@canonical.com>
Fri, 8 Sep 2017 08:02:01 +0000 (09:02 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Sep 2017 19:39:11 +0000 (15:39 -0400)
commit858e51e8cbe11a8c59b24aaf4cb40f7f4e7a2feb
tree922fc9959f5cfed7fa2f4f21519a31817fd0700c
parent3882a734c19b3cd7feb9e30e1dbd8ae54ac0905a
scsi: lpfc: remove redundant null check on eqe

The pointer eqe is always non-null inside the while loop, so the check
to see if eqe is NULL is redudant and hence can be removed.

Detected by CoverityScan CID#1248693 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c