]> 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)
commitab62083fb65ad3f4033853c683c36df2f19fcfa6
tree922fc9959f5cfed7fa2f4f21519a31817fd0700c
parent9924e942fd00c0c2ec0c845e065cab2f12ab20fe
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