]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
scsi: qla2xxx: remove redundant null check on tgt
authorColin Ian King <colin.king@canonical.com>
Mon, 5 Jun 2017 17:29:58 +0000 (18:29 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:10:53 +0000 (21:10 -0400)
commitfe4d5cec8eda7b1404eec8664bc165d6d2539176
tree960ebce1ba41cd1d9f12cfd7f374262cdc9818a3
parent2c87ea97ce6a53fc8c98a796b34fed5b84aeff6b
scsi: qla2xxx: remove redundant null check on tgt

An earlier commit ed7fb808477b846bb2 ("scsi: qla2xxx: Remove redundant
wait when target is stopped.") removed a null check on ha->tgt.tgt_ops
and replaced it with a new check that null checked tgt, thus making the
subsequent null check on tgt totally redundant. Remove it.

Detected by CoverityScan, CID#1440452 ("Logically Dead Code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Himanshu Madhani <himanshu.madhani@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_target.c