projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
012681b
)
usb: Remove unused variable in usb_setup_descriptor()
author
Hans de Goede
<hdegoede@redhat.com>
Sun, 19 Apr 2015 09:33:21 +0000
(11:33 +0200)
committer
Marek Vasut
<marex@denx.de>
Fri, 29 May 2015 10:41:04 +0000
(12:41 +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
patch
|
blob
|
history
diff --git
a/common/usb.c
b/common/usb.c
index 6283f3992c7cde77d8af62143c7671a4a427cbcd..7ff8ac5df364f6cb78ec3e522948402c969f3104 100644
(file)
--- 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)