diff options
author | Bart Van Assche | 2019-04-17 14:44:27 -0700 |
---|---|---|
committer | Martin K. Petersen | 2019-04-29 17:24:50 -0400 |
commit | c04466c17142d5eb566984372b9a5003d1900fe3 (patch) | |
tree | 8864c0c911ee6a9d22c3fddf93267612dba892fd /drivers/clocksource | |
parent | e65449aa23fbeaba5b358f23a0c790cef6a77969 (diff) |
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/clocksource')
0 files changed, 0 insertions, 0 deletions