- Request sense command now comes like any other command with sg-list
and regular dma mapping. So just remove that special handling.
No thanks!
- Some left-over cleanup from the accessors and not use_sg patch
Signed-off-by: Boaz Harrosh <[EMAIL PROTECTED]>
---
drivers/usb/image/microtek.c | 20 +++++---------------
1 files changed, 5 insertions(+), 15 deletions(-)
diff --git a/drivers/usb/image/microtek.c b/drivers/usb/image/microtek.c
index bc207e3..3ff0474 100644
--- a/drivers/usb/image/microtek.c
+++ b/drivers/usb/image/microtek.c
@@ -480,23 +480,13 @@ static void mts_command_done( struct urb *transfer )
return;
}
- if (context->srb->cmnd[0] == REQUEST_SENSE) {
- mts_int_submit_urb(transfer,
- context->data_pipe,
- context->srb->sense_buffer,
+ if (context->data)
+ mts_int_submit_urb(transfer, context->data_pipe, context->data,
context->data_length,
- mts_data_done);
- } else { if ( context->data ) {
- mts_int_submit_urb(transfer,
- context->data_pipe,
- context->data,
- context->data_length,
- scsi_sg_count(context->srb) > 1 ?
- mts_do_sg : mts_data_done);
- } else {
+ scsi_sg_count(context->srb) > 1 ?
+ mts_do_sg : mts_data_done);
+ else
mts_get_status(transfer);
- }
- }
return;
}
--
1.5.3.3
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html