diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2019-08-08 20:01:48 -0700 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-08-12 21:34:06 -0400 |
| commit | c29282c65d1cf54daeea63be46243d7f69d72f4d (patch) | |
| tree | b61f4e1808a5cc85b6c1b0cd3dc307815a96e803 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | scsi: qla2xxx: Simplify a debug statement (diff) | |
| download | linux-c29282c65d1cf54daeea63be46243d7f69d72f4d.tar.gz linux-c29282c65d1cf54daeea63be46243d7f69d72f4d.zip | |
scsi: qla2xxx: Fix qla24xx_process_bidir_cmd()
Set the r??_data_len variables before using these instead of after.
This patch fixes the following Coverity complaint:
const: At condition req_data_len != rsp_data_len, the value of req_data_len
must be equal to 0.
const: At condition req_data_len != rsp_data_len, the value of rsp_data_len
must be equal to 0.
dead_error_condition: The condition req_data_len != rsp_data_len cannot be
true.
Cc: Himanshu Madhani <hmadhani@marvell.com>
Fixes: a9b6f722f62d ("[SCSI] qla2xxx: Implementation of bidirectional.") # v3.7.
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
