From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 12:05:58 +0000 (+0100) Subject: usb: gadget: remove duplicate assignment. X-Git-Tag: v2018.05~10^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa9da8ee60a7387b9e9b0358bd73ef5dbc73736c;p=u-boot usb: gadget: remove duplicate assignment. We should not make the same assignement twice. Signed-off-by: Heinrich Schuchardt --- 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;