Paolo Bonzini 27a2709912 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>
2012-09-05 17:20:19 -07:00
..
2012-08-12 21:34:09 +03:00
2012-08-02 13:51:46 -04:00
2012-08-04 12:15:39 +04:00
2012-07-23 16:31:31 -07:00
2012-08-13 10:15:22 +05:30
2012-07-29 21:11:05 -03:00
2012-07-30 12:41:17 -07:00
2012-07-30 09:32:39 -07:00
2012-07-15 17:33:17 +01:00
2012-08-06 18:10:04 +02:00
2012-08-13 14:34:02 +08:00
2012-08-02 11:34:40 -07:00
2012-08-12 21:31:44 +03:00
2012-08-12 13:42:18 -07:00
2012-07-09 16:42:24 -04:00
2012-07-24 14:07:22 -07:00
2012-07-24 16:17:07 -07:00
2012-08-10 12:27:47 +02:00
2012-08-12 21:31:44 +03:00
2012-07-31 08:16:24 -06:00
2012-08-01 10:45:12 -07:00
2012-07-26 11:25:33 -07:00
2012-07-24 16:17:07 -07:00
2012-07-31 08:16:22 -06:00
2012-07-31 08:16:22 -06:00