]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
usb: gadget: remove duplicate assignment.
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 18 Mar 2018 12:05:58 +0000 (13:05 +0100)
committerMarek Vasut <marex@denx.de>
Mon, 30 Apr 2018 17:38:09 +0000 (19:38 +0200)
We should not make the same assignement twice.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
drivers/usb/gadget/composite.c

index a87639def97433366e1b6218169c55f6ef6ba43b..6e4426ccedc570d7a8d4a36757cd4d3f463815f8 100644 (file)
@@ -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;