uas: uas_alloc_cmd_urb: drop unused stream_id parameter
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Oct 2013 17:47:28 +0000 (19:47 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:08 +0000 (15:38 -0800)
The cmd endpoint never has streams, so the stream_id parameter is unused.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/storage/uas.c

index dcaf61197032e12bd0a02ac7bf12a9cf6a522d0b..5eacb8054457c2e2553266319191bf8da0e6b26f 100644 (file)
@@ -454,7 +454,7 @@ static struct urb *uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp,
 }
 
 static struct urb *uas_alloc_cmd_urb(struct uas_dev_info *devinfo, gfp_t gfp,
-                                       struct scsi_cmnd *cmnd, u16 stream_id)
+                                       struct scsi_cmnd *cmnd)
 {
        struct usb_device *udev = devinfo->udev;
        struct scsi_device *sdev = cmnd->device;
@@ -626,8 +626,7 @@ static int uas_submit_urbs(struct scsi_cmnd *cmnd,
        }
 
        if (cmdinfo->state & ALLOC_CMD_URB) {
-               cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, gfp, cmnd,
-                                                    cmdinfo->stream);
+               cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, gfp, cmnd);
                if (!cmdinfo->cmd_urb)
                        return SCSI_MLQUEUE_DEVICE_BUSY;
                cmdinfo->state &= ~ALLOC_CMD_URB;