[PATCH 10/24][RFC] usb/microtek: No special handling for REQUEST_SENSE command please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  - 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 <bharrosh@xxxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux