Skip to content

Commit

Permalink
usb: dwc3: gadget: use the descriptor pointer we hold
Browse files Browse the repository at this point in the history
We hold that pointer for one reason. It just
looks nicer to use it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Feb 6, 2012
1 parent 40aa41f commit 7b7dd02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7b7dd02

Please sign in to comment.