]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
usb: Remove unused variable in usb_setup_descriptor()
authorHans de Goede <hdegoede@redhat.com>
Sun, 19 Apr 2015 09:33:21 +0000 (11:33 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:47:10 +0000 (22:47 +0200)
The compiler did not catch this as it was marked __maybe_unused.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
common/usb.c

index 6283f3992c7cde77d8af62143c7671a4a427cbcd..7ff8ac5df364f6cb78ec3e522948402c969f3104 100644 (file)
@@ -959,8 +959,6 @@ static int get_descriptor_len(struct usb_device *dev, int len, int expect_len)
 
 static int usb_setup_descriptor(struct usb_device *dev, bool do_read)
 {
-       __maybe_unused struct usb_device_descriptor *desc;
-
        /*
         * This is a Windows scheme of initialization sequence, with double
         * reset of the device (Linux uses the same sequence)