usb: dwc3: gadget: assign resource_index inside get_transfer_index()
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 11 Apr 2018 09:56:24 +0000 (12:56 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 21 May 2018 07:01:00 +0000 (10:01 +0300)
commit4439661d64f5afa77f2df1e3450da5e22ab6532e
tree4b2cb5714a788c4560eef0abef64d27628402f00
parentf62afb4929a83cb7e81bd2ac411f2d4977716cf6
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>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/gadget.h