summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-18 13:05:58 +0100
committerMarek Vasut <marex@denx.de>2018-04-30 19:38:09 +0200
commitfa9da8ee60a7387b9e9b0358bd73ef5dbc73736c (patch)
tree7fbe8993ed2f8fb24523a33ac10fda67fa75224c /drivers/usb
parentb25f8e2112b1582ce6386e846800a31bab688e50 (diff)
usb: gadget: remove duplicate assignment.
We should not make the same assignement twice. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/composite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index a87639def9..6e4426cced 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -165,7 +165,7 @@ static int config_buf(struct usb_configuration *config,
int len = USB_BUFSIZ - USB_DT_CONFIG_SIZE;
void *next = buf + USB_DT_CONFIG_SIZE;
struct usb_descriptor_header **descriptors;
- struct usb_config_descriptor *c = buf;
+ struct usb_config_descriptor *c;
int status;
struct usb_function *f;