[U-Boot] [PATCH] USB: Squash warning in usb_hub.c

Marek Vasut marex at denx.de
Sat Mar 3 16:07:01 CET 2012


usb_hub.c:79:12: warning: ‘usb_clear_hub_feature’ defined but not used [-Wunused-function]

Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Wolfgang Denk <wd at denx.de>
---
 common/usb_hub.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/common/usb_hub.c b/common/usb_hub.c
index 08cee54..84d0d3f 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -76,13 +76,6 @@ static int usb_get_hub_descriptor(struct usb_device *dev, void *data, int size)
 		USB_DT_HUB << 8, 0, data, size, USB_CNTL_TIMEOUT);
 }
 
-static int usb_clear_hub_feature(struct usb_device *dev, int feature)
-{
-	return usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
-				USB_REQ_CLEAR_FEATURE, USB_RT_HUB, feature,
-				0, NULL, 0, USB_CNTL_TIMEOUT);
-}
-
 static int usb_clear_port_feature(struct usb_device *dev, int port, int feature)
 {
 	return usb_control_msg(dev, usb_sndctrlpipe(dev, 0),
-- 
1.7.9



More information about the U-Boot mailing list