From fa9da8ee60a7387b9e9b0358bd73ef5dbc73736c Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sun, 18 Mar 2018 13:05:58 +0100 Subject: [PATCH] usb: gadget: remove duplicate assignment. We should not make the same assignement twice. Signed-off-by: Heinrich Schuchardt --- drivers/usb/gadget/composite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5