From patchwork Wed Dec 14 05:30:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 87979 Delivered-To: patch@linaro.org Received: by 10.140.20.101 with SMTP id 92csp24758qgi; Tue, 13 Dec 2016 21:30:47 -0800 (PST) X-Received: by 10.194.31.201 with SMTP id c9mr87324999wji.176.1481693447647; Tue, 13 Dec 2016 21:30:47 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id ha4si52799754wjc.295.2016.12.13.21.30.47; Tue, 13 Dec 2016 21:30:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 31C8BA7576; Wed, 14 Dec 2016 06:30:46 +0100 (CET) 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 ARIn0zqnuRcb; Wed, 14 Dec 2016 06:30:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C52C74BA16; Wed, 14 Dec 2016 06:30:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4099A4BA35 for ; Wed, 14 Dec 2016 06:30:36 +0100 (CET) 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 FvlZvT6_Qfs8 for ; Wed, 14 Dec 2016 06:30:35 +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 conuserg-12.nifty.com (conuserg-12.nifty.com [210.131.2.79]) by theia.denx.de (Postfix) with ESMTPS id 4C0BF4BA16 for ; Wed, 14 Dec 2016 06:30:29 +0100 (CET) Received: from pug.jp.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id uBE5UHHs022621; Wed, 14 Dec 2016 14:30:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com uBE5UHHs022621 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1481693418; bh=X3J85kiIvUCX1NmWiNNapVJlnW+8GBW83HbSiQxrZig=; h=From:To:Cc:Subject:Date:From; b=LWh+1/6Y8rLRxi+ANVmrhi3W7aUduYLfXoS/cRASs+jtxPOm90s+KwgDHa+zTxI5/ Arv92JuwvM1+uszeWsrapkOZXBkMJbbPo3McmOs3gOfuuDP7CdVqq9LvQlMHTz9N88 MBBskki6aKXaI+uMpUzYVbq/rtxPzhPE5W9zVE69mzu90TFKYngofp0fihpEPz4oRc X7n8aFtMQjAEz7fitYqhG2uQNN+LTHDrMetL76uC7lVt7W+9w73E/JzcFUhBEEiKlg GIIOJ7p4tmFCRe5JCdpBI0pOT29EAY6u7NUViMtX0jKaOEbc+NxkFiNW6JN2TOqXAO XjrDf7IWR10Fg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 14 Dec 2016 14:30:12 +0900 Message-Id: <1481693412-32139-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Lukasz Majewski Subject: [U-Boot] [PATCH] usb: dwc2-otg: remove unused variable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" GCC 6.1 complains about this. drivers/usb/gadget/dwc2_udc_otg.c:72:19: warning: 'driver_desc' defined but not used [-Wunused-const-variable=] static const char driver_desc[] = DRIVER_DESC; ^~~~~~~~~~~ Signed-off-by: Masahiro Yamada --- drivers/usb/gadget/dwc2_udc_otg.c | 2 -- 1 file changed, 2 deletions(-) -- 2.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot Acked-by: Marek Vasut diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index d72bfdf..cb44374 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -63,13 +63,11 @@ static char *state_names[] = { "WAIT_FOR_NULL_COMPLETE", }; -#define DRIVER_DESC "DWC2 HS USB OTG Device Driver, (c) Samsung Electronics" #define DRIVER_VERSION "15 March 2009" struct dwc2_udc *the_controller; static const char driver_name[] = "dwc2-udc"; -static const char driver_desc[] = DRIVER_DESC; static const char ep0name[] = "ep0-control"; /* Max packet size*/