summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_lib_dma.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-11-18 14:37:44 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2020-11-20 04:15:19 +0100
commit61795a5316ad8786fb4bb896198733188a60eab8 (patch)
tree8c0a3f9523c803717a950b0723f0e45fa79696f4 /drivers/scsi/scsi_lib_dma.c
parentscsi: lpfc: Fix pointer defereference before it is null checked issue (diff)
downloadlinux-61795a5316ad8786fb4bb896198733188a60eab8.tar.xz
linux-61795a5316ad8786fb4bb896198733188a60eab8.zip
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")
Diffstat (limited to 'drivers/scsi/scsi_lib_dma.c')
0 files changed, 0 insertions, 0 deletions