scsi: qla2xxx: Remove the fcport test from qla_nvme_abort_work()
authorBart Van Assche <bvanassche@acm.org>
Wed, 17 Apr 2019 21:44:18 +0000 (14:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 29 Apr 2019 21:24:49 +0000 (17:24 -0400)
commitdafbe56f6e338c7f583a524c714942f892c1f50a
treead36f1b9d655f2fef0eeddb26f9793ee8ed627ee
parent12975426d8889ce42821e9e0348f9a2da343779a
scsi: qla2xxx: Remove the fcport test from qla_nvme_abort_work()

Testing whether a pointer is not NULL after it has been dereferenced is not
useful. Hence remove the if (fcport) test. This was detected by Coverity.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_nvme.c