From patchwork Sat Mar 3 15:07:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 144427 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 716F21007D3 for ; Sun, 4 Mar 2012 02:07:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2F38D280E0; Sat, 3 Mar 2012 16:07:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jXFp4YZ1BogU; Sat, 3 Mar 2012 16:07:11 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5874D280D4; Sat, 3 Mar 2012 16:07:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 85907280D4 for ; Sat, 3 Mar 2012 16:07:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DJ8khrQBNPmv for ; Sat, 3 Mar 2012 16:07:07 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by theia.denx.de (Postfix) with ESMTPS id 1BE12280CD for ; Sat, 3 Mar 2012 16:07:05 +0100 (CET) Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3V0W212WXCz4LDdX; Sat, 3 Mar 2012 16:07:05 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.8.164]) by mail.m-online.net (Postfix) with ESMTP id 3V0W212QfCz4KK2V; Sat, 3 Mar 2012 16:07:05 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from smtp-auth.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.8.164]) (amavisd-new, port 10024) with ESMTP id ClrVRnTel6rq; Sat, 3 Mar 2012 16:07:04 +0100 (CET) X-Auth-Info: iAtEFQRSjkAJYnnNsUiJgIA7TNdfr3mrcBI2Dpe3SSg= Received: from mashiro.lan (host-82-135-33-74.customer.m-online.net [82.135.33.74]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA; Sat, 3 Mar 2012 16:07:04 +0100 (CET) From: Marek Vasut To: u-boot@lists.denx.de Date: Sat, 3 Mar 2012 16:07:01 +0100 Message-Id: <1330787221-22360-1-git-send-email-marex@denx.de> X-Mailer: git-send-email 1.7.9 MIME-Version: 1.0 Cc: Marek Vasut Subject: [U-Boot] [PATCH] USB: Squash warning in usb_hub.c X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de usb_hub.c:79:12: warning: ‘usb_clear_hub_feature’ defined but not used [-Wunused-function] Signed-off-by: Marek Vasut Cc: Wolfgang Denk --- 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),