summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/ep0.c
diff options
context:
space:
mode:
authorFelipe Balbi <felipe.balbi@linux.intel.com>2018-04-11 11:56:24 +0200
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-05-21 09:01:00 +0200
commit4439661d64f5afa77f2df1e3450da5e22ab6532e (patch)
tree4b2cb5714a788c4560eef0abef64d27628402f00 /drivers/usb/dwc3/ep0.c
parentusb: dwc3: gadget: always start isochronous aligned to dep->interval (diff)
downloadlinux-4439661d64f5afa77f2df1e3450da5e22ab6532e.tar.xz
linux-4439661d64f5afa77f2df1e3450da5e22ab6532e.zip
usb: dwc3: gadget: assign resource_index inside get_transfer_index()
Instead of returning resource index number just to assign it to a field inside 'dep' which was passed as argument, we can assing dep->resource_index from inside dwc3_gadget_ep_get_transfer_index() itself. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc3/ep0.c')
-rw-r--r--drivers/usb/dwc3/ep0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c
index 826fee2bc8cc..b587ae14f773 100644
--- a/drivers/usb/dwc3/ep0.c
+++ b/drivers/usb/dwc3/ep0.c
@@ -79,7 +79,7 @@ static int dwc3_ep0_start_trans(struct dwc3_ep *dep)
if (ret < 0)
return ret;
- dep->resource_index = dwc3_gadget_ep_get_transfer_index(dep);
+ dwc3_gadget_ep_get_transfer_index(dep);
dwc->ep0_next_event = DWC3_EP0_COMPLETE;
return 0;