summaryrefslogtreecommitdiffstats
path: root/common/usb.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-04-19 11:33:21 +0200
committerMarek Vasut <marex@denx.de>2015-05-29 12:41:04 +0200
commit126ca9427417df12b492e938418ee7b5f096a757 (patch)
tree9f97eaf72f32c0699e5876e342db6d87f62aa150 /common/usb.c
parent012681b1fa822492bb8fdc5c2dd3d24d6092e110 (diff)
downloadblackbird-obmc-uboot-126ca9427417df12b492e938418ee7b5f096a757.tar.gz
blackbird-obmc-uboot-126ca9427417df12b492e938418ee7b5f096a757.zip
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 <hdegoede@redhat.com>
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c2
1 files changed, 0 insertions, 2 deletions
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)
OpenPOWER on IntegriCloud