提交 a887cd36 编写于 作者: H Hans de Goede 提交者: Sarah Sharp

uas: uas_alloc_cmd_urb: drop unused stream_id parameter

The cmd endpoint never has streams, so the stream_id parameter is unused.
Signed-off-by: NHans de Goede <hdegoede@redhat.com>
Signed-off-by: NSarah Sharp <sarah.a.sharp@linux.intel.com>
上级 7e50e0be
...@@ -454,7 +454,7 @@ static struct urb *uas_alloc_sense_urb(struct uas_dev_info *devinfo, gfp_t gfp, ...@@ -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, 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 usb_device *udev = devinfo->udev;
struct scsi_device *sdev = cmnd->device; struct scsi_device *sdev = cmnd->device;
...@@ -626,8 +626,7 @@ static int uas_submit_urbs(struct scsi_cmnd *cmnd, ...@@ -626,8 +626,7 @@ static int uas_submit_urbs(struct scsi_cmnd *cmnd,
} }
if (cmdinfo->state & ALLOC_CMD_URB) { if (cmdinfo->state & ALLOC_CMD_URB) {
cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, gfp, cmnd, cmdinfo->cmd_urb = uas_alloc_cmd_urb(devinfo, gfp, cmnd);
cmdinfo->stream);
if (!cmdinfo->cmd_urb) if (!cmdinfo->cmd_urb)
return SCSI_MLQUEUE_DEVICE_BUSY; return SCSI_MLQUEUE_DEVICE_BUSY;
cmdinfo->state &= ~ALLOC_CMD_URB; cmdinfo->state &= ~ALLOC_CMD_URB;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册