From: Hans de Goede Date: Sun, 19 Apr 2015 09:33:21 +0000 (+0200) Subject: usb: Remove unused variable in usb_setup_descriptor() X-Git-Tag: KARO-TXSD-2017-03-15~4388^2~3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=126ca9427417df12b492e938418ee7b5f096a757;p=karo-tx-uboot.git usb: Remove unused variable in usb_setup_descriptor() The compiler did not catch this as it was marked __maybe_unused. Signed-off-by: Hans de Goede --- diff --git a/common/usb.c b/common/usb.c index 6283f3992c..7ff8ac5df3 100644 --- a/common/usb.c +++ b/common/usb.c @@ -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)