]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Remove dead code on second !ndlp check
authorColin Ian King <colin.king@canonical.com>
Wed, 18 Nov 2020 13:37:44 +0000 (13:37 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Nov 2020 03:15:19 +0000 (22:15 -0500)
commitd599b04f763f9a60762c192dc0361fadf30c9584
tree8c0a3f9523c803717a950b0723f0e45fa79696f4
parent5fcb4762ac7cc479f2f9ce7910ecf8e14b68580f
scsi: lpfc: Remove dead code on second !ndlp check

Currently there is a null check on the pointer ndlp that exits via error
path issue_ct_rsp_exit followed by another null check on the same pointer
that is almost identical to the previous null check stanza and yet can
never can be reached because the previous check exited via
issue_ct_rsp_exit. This is deadcode and can be removed.

Link: https://lore.kernel.org/r/20201118133744.461385-1-colin.king@canonical.com
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Addresses-Coverity: ("Logically dead code")
drivers/scsi/lpfc/lpfc_bsg.c