Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303805
b: refs/heads/master
c: f99987b
h: refs/heads/master
i:
  303803: 836e9c6
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed May 4, 2012
1 parent 95d7860 commit 5747c82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 2e87edf4922795f5e5e5be7934a36b6ff331022d
refs/heads/master: f99987bb261ed80f645ed0acd13732922ca10138
8 changes: 3 additions & 5 deletions trunk/drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,14 +595,12 @@ static struct usb_request *dummy_alloc_request(struct usb_ep *_ep,

static void dummy_free_request(struct usb_ep *_ep, struct usb_request *_req)
{
struct dummy_ep *ep;
struct dummy_request *req;

if (!_ep || !_req)
return;
ep = usb_ep_to_dummy_ep(_ep);
if (!ep->desc && _ep->name != ep0name)
if (!_ep || !_req) {
__WARN();
return;
}

req = usb_request_to_dummy_request(_req);
WARN_ON(!list_empty(&req->queue));
Expand Down

0 comments on commit 5747c82

Please sign in to comment.