diff options
author | Felipe Balbi <balbi@ti.com> | 2012-01-18 19:09:17 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-02-06 13:48:30 +0400 |
commit | 7b7dd0253cd50fdc413b4ec199f1f3af08b7ba0d (patch) | |
tree | a47cd5fb54adcfcd43f49ad053b7862786ebed69 /drivers/usb/dwc3 | |
parent | 40aa41fba348bc5bd19ff5bcf2b03d67bb01d1ce (diff) | |
download | linux-7b7dd0253cd50fdc413b4ec199f1f3af08b7ba0d.tar.xz |
usb: dwc3: gadget: use the descriptor pointer we hold
We hold that pointer for one reason. It just
looks nicer to use it.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 4b64dc0bfa27..d406a75456a0 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -943,7 +943,7 @@ static int __dwc3_gadget_ep_queue(struct dwc3_ep *dep, struct dwc3_request *req) int start_trans; start_trans = 1; - if (usb_endpoint_xfer_isoc(dep->endpoint.desc) && + if (usb_endpoint_xfer_isoc(dep->desc) && dep->flags & DWC3_EP_BUSY) start_trans = 0; |