Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248744
b: refs/heads/master
c: 1744020
h: refs/heads/master
v: v3
  • Loading branch information
Sven Schnelle authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent e56f8d9 commit 3e5c2e8
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 25a73c6ce7f3b7b667a11a116d9607d6d5bf5cab
refs/heads/master: 1744020ceb86c83d8116d28c7bdd221d071ca213
9 changes: 4 additions & 5 deletions trunk/drivers/usb/gadget/dbgp.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ static int dbgp_setup(struct usb_gadget *gadget,
u8 request = ctrl->bRequest;
u16 value = le16_to_cpu(ctrl->wValue);
u16 length = le16_to_cpu(ctrl->wLength);
int err = 0;
void *data;
u16 len;
int err = -EOPNOTSUPP;
void *data = NULL;
u16 len = 0;

gadget->ep0->driver_data = gadget;

Expand All @@ -371,10 +371,9 @@ static int dbgp_setup(struct usb_gadget *gadget,
default:
goto fail;
}
err = 0;
} else if (request == USB_REQ_SET_FEATURE &&
value == USB_DEVICE_DEBUG_MODE) {
len = 0;
data = NULL;
dev_dbg(&dbgp.gadget->dev, "setup: feat debug\n");
#ifdef CONFIG_USB_G_DBGP_PRINTK
err = dbgp_enable_ep();
Expand Down

0 comments on commit 3e5c2e8

Please sign in to comment.