[U-Boot] [PATCH] usb: Remove unused variable in usb_setup_descriptor()

Hans de Goede hdegoede at redhat.com
Sun Apr 19 11:33:21 CEST 2015


The compiler did not catch this as it was marked __maybe_unused.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 common/usb.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/usb.c b/common/usb.c
index a4820d3..305d5cf 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -931,8 +931,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)
-- 
2.3.5



More information about the U-Boot mailing list