]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qla2xxx: Remove two superfluous if-tests
authorBart Van Assche <bvanassche@acm.org>
Fri, 9 Aug 2019 03:02:17 +0000 (20:02 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Aug 2019 01:34:09 +0000 (21:34 -0400)
commit4fa4d283bfcfefd6edc41f3910a422577bf0db81
tree21c0405ab72e7955d4eab4d940f436192a769956
parentfb088c4d9fe79eedc3d0f5e662861d7907833cc4
scsi: qla2xxx: Remove two superfluous if-tests

This patch fixes the following Coverity complaint:

Null-checking sp->u.iocb_cmd.u.ctarg.rsp suggests that it may be null, but
it has already been dereferenced on all paths leading to the check.

See also commit 29367847ef03 ("scsi: qla2xxx: Migrate switch registration commands away from mailbox interface") # v4.16.

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