]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite798a61c845b078f7bbac71d47d3cf9ede6e0eb3
tree922fc9959f5cfed7fa2f4f21519a31817fd0700c
parent3a725c97892ae93563cce9c508d5d82170c63694
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