Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316941
b: refs/heads/master
c: ef21ede
h: refs/heads/master
i:
  316939: f79a6ac
v: v3
  • Loading branch information
Felipe Balbi committed Jun 3, 2012
1 parent 3b7322d commit 81b9dac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 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: 5cbe8c220c1e126dd0855ad57fe4491b267132b9
refs/heads/master: ef21ede65ee3e0dfd8f2cb37de8892816e2f1257
12 changes: 5 additions & 7 deletions trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -641,11 +641,11 @@ static void dwc3_ep0_inspect_setup(struct dwc3 *dwc,
const struct dwc3_event_depevt *event)
{
struct usb_ctrlrequest *ctrl = dwc->ctrl_req;
int ret;
int ret = -EINVAL;
u32 len;

if (!dwc->gadget_driver)
goto err;
goto out;

len = le16_to_cpu(ctrl->wLength);
if (!len) {
Expand All @@ -666,11 +666,9 @@ static void dwc3_ep0_inspect_setup(struct dwc3 *dwc,
if (ret == USB_GADGET_DELAYED_STATUS)
dwc->delayed_status = true;

if (ret >= 0)
return;

err:
dwc3_ep0_stall_and_restart(dwc);
out:
if (ret < 0)
dwc3_ep0_stall_and_restart(dwc);
}

static void dwc3_ep0_complete_data(struct dwc3 *dwc,
Expand Down

0 comments on commit 81b9dac

Please sign in to comment.