Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259240
b: refs/heads/master
c: 719e52c
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Greg Kroah-Hartman committed Jul 1, 2011
1 parent ffa00c0 commit cfa99a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 99fd14080e7f0a65b87830bf5062b09f6e80dd13
refs/heads/master: 719e52cbc7b826fae9501f3b86b8cbc25a4c5268
11 changes: 3 additions & 8 deletions trunk/drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,10 +429,8 @@ dummy_enable (struct usb_ep *_ep, const struct usb_endpoint_descriptor *desc)
dum = ep_to_dummy (ep);
if (!dum->driver)
return -ESHUTDOWN;
if (dum->gadget.speed == USB_SPEED_SUPER)
dum_hcd = dum->ss_hcd;
else
dum_hcd = dum->hs_hcd;

dum_hcd = gadget_to_dummy_hcd(&dum->gadget);
if (!is_enabled(dum_hcd))
return -ESHUTDOWN;

Expand Down Expand Up @@ -631,10 +629,7 @@ dummy_queue (struct usb_ep *_ep, struct usb_request *_req,
return -EINVAL;

dum = ep_to_dummy (ep);
if (dum->gadget.speed == USB_SPEED_SUPER)
dum_hcd = dum->ss_hcd;
else
dum_hcd = dum->hs_hcd;
dum_hcd = gadget_to_dummy_hcd(&dum->gadget);
if (!dum->driver || !is_enabled(dum_hcd))
return -ESHUTDOWN;

Expand Down

0 comments on commit cfa99a2

Please sign in to comment.