diff options
author | 2012-09-05 17:09:14 +0200 | |
---|---|---|
committer | 2012-09-05 17:20:19 -0700 | |
commit | 27a2709912ac19c755d34c79fe11994b0bf8082b (patch) | |
tree | 8e8e0a2a88f9bc8e807a9a7bac8756de43aaa37c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | target: move transport_get_sense_data (diff) | |
download | linux-dev-27a2709912ac19c755d34c79fe11994b0bf8082b.tar.xz linux-dev-27a2709912ac19c755d34c79fe11994b0bf8082b.zip |
target: simplify code around transport_get_sense_data
The error conditions in transport_get_sense_data are superfluous
and complicate the code unnecessarily:
* SCF_TRANSPORT_TASK_SENSE is checked in the caller;
* it's simply part of the invariants of dev->transport->get_sense_buffer
that it must be there if transport_complete ever returns 1, and that
it must not return NULL. Besides, the entire callback will disappear
with the next patch.
* similarly in the caller we can expect that sense data is only sent
for non-zero cmd->scsi_status.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions