summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-04-17 23:44:27 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2019-04-29 23:24:50 +0200
commitc04466c17142d5eb566984372b9a5003d1900fe3 (patch)
tree8864c0c911ee6a9d22c3fddf93267612dba892fd /drivers/firewire
parentscsi: qla2xxx: Simplify qlt_send_term_imm_notif() (diff)
downloadlinux-c04466c17142d5eb566984372b9a5003d1900fe3.tar.xz
linux-c04466c17142d5eb566984372b9a5003d1900fe3.zip
scsi: qla2xxx: Fix error handling in qlt_alloc_qfull_cmd()
The test "if (!cmd)" is not useful because it is guaranteed that cmd != NULL. Instead of testing the cmd pointer, rely on the tag to decide whether or not command allocation failed. Cc: Himanshu Madhani <hmadhani@marvell.com> Cc: Giridhar Malavali <gmalavali@marvell.com> Fixes: 33e799775593 ("qla2xxx: Add support for QFull throttling and Term Exchange retry") # v3.18. 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>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions