USB: usb-storage: merge ATAPI and QIC-157 protocol routines
[deliverable/linux.git] / drivers / usb / storage / protocol.c
index b9b8ede61fb337bf4927ef2638640bc6723d8102..be441d84bc6460db0b56a89c067010a4804eb9e9 100644 (file)
@@ -1,6 +1,4 @@
 /* Driver for USB Mass Storage compliant devices
- *
- * $Id: protocol.c,v 1.14 2002/04/22 03:39:43 mdharm Exp $
  *
  * Current development and maintenance by:
  *   (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
@@ -58,9 +56,9 @@
  * Protocol routines
  ***********************************************************************/
 
-void usb_stor_qic157_command(struct scsi_cmnd *srb, struct us_data *us)
+void usb_stor_pad12_command(struct scsi_cmnd *srb, struct us_data *us)
 {
-       /* Pad the ATAPI command with zeros 
+       /* Pad the SCSI command with zeros out to 12 bytes
         *
         * NOTE: This only works because a scsi_cmnd struct field contains
         * a unsigned char cmnd[16], so we know we have storage available
@@ -75,26 +73,6 @@ void usb_stor_qic157_command(struct scsi_cmnd *srb, struct us_data *us)
        usb_stor_invoke_transport(srb, us);
 }
 
-void usb_stor_ATAPI_command(struct scsi_cmnd *srb, struct us_data *us)
-{
-       /* Pad the ATAPI command with zeros 
-        *
-        * NOTE: This only works because a scsi_cmnd struct field contains
-        * a unsigned char cmnd[16], so we know we have storage available
-        */
-
-       /* Pad the ATAPI command with zeros */
-       for (; srb->cmd_len<12; srb->cmd_len++)
-               srb->cmnd[srb->cmd_len] = 0;
-
-       /* set command length to 12 bytes */
-       srb->cmd_len = 12;
-
-       /* send the command to the transport layer */
-       usb_stor_invoke_transport(srb, us);
-}
-
-
 void usb_stor_ufi_command(struct scsi_cmnd *srb, struct us_data *us)
 {
        /* fix some commands -- this is a form of mode translation
This page took 0.025751 seconds and 5 git commands to generate.