From patchwork Wed Aug 8 14:47:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10598 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 8057B23E53 for ; Wed, 8 Aug 2012 14:48:16 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 4F9A0A18FDA for ; Wed, 8 Aug 2012 14:48:16 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id g10so847675ghb.11 for ; Wed, 08 Aug 2012 07:48:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-provags-id:x-gm-message-state; bh=cBu6XFaM6bquwCE6BHgyQ0fBh4jof9+ABk6tswWi8/k=; b=TTCcJIIRPsgLIDL/fLdFKlKTFA/CzfJzT1D5OCDRECbaF2TIeMoDRDQHXIjzmHeH8R 9d2zTrTrEWdQ3dbnoSXgLyPgBglzPxTxK5rL8lU/dp7P5TQVyu5KvxInnUSOqPB3Mj8J bgR895xEYdUvHaaJOXnt8slH/HCYI3k4KZy45pDTnhD5mjeJZgtFX3SEr2QR4bPbR4N8 mtObUoB8jh0s8khodoOPLm0AOhz3C9f3pq3jjjs3/aWg43f75fDevqmWHExdeexO374l 13vikQ51ZMVczH2g0Ci61LUmS9R0nrT/0tqezzLi+iDR0i8m1T1bvaQ+oJJIBe/t95xU mGjg== Received: by 10.50.94.133 with SMTP id dc5mr396817igb.16.1344437295932; Wed, 08 Aug 2012 07:48:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.200 with SMTP id ew8csp611917igc; Wed, 8 Aug 2012 07:48:15 -0700 (PDT) Received: by 10.216.236.24 with SMTP id v24mr9069501weq.18.1344437294606; Wed, 08 Aug 2012 07:48:14 -0700 (PDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de. [212.227.126.171]) by mx.google.com with ESMTP id r13si30223898wes.45.2012.08.08.07.48.14; Wed, 08 Aug 2012 07:48:14 -0700 (PDT) Received-SPF: neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) client-ip=212.227.126.171; Authentication-Results: mx.google.com; spf=neutral (google.com: 212.227.126.171 is neither permitted nor denied by best guess record for domain of arnd@arndb.de) smtp.mail=arnd@arndb.de Received: from klappe2.boeblingen.de.ibm.com (deibp9eh1--blueice3n2.emea.ibm.com [195.212.29.180]) by mrelayeu.kundenserver.de (node=mrbap1) with ESMTP (Nemesis) id 0LgeHd-1TVNRI2bwb-00oPNh; Wed, 08 Aug 2012 16:47:34 +0200 From: Arnd Bergmann To: linux-arm-kernel@lists.infradead.org Cc: arm@kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , Richard Zhao , Alan Stern , Greg Kroah-Hartman Subject: [PATCH 03/11] usb/ohci-omap: remove unused variable Date: Wed, 8 Aug 2012 16:47:20 +0200 Message-Id: <1344437248-20560-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1344437248-20560-1-git-send-email-arnd@arndb.de> References: <1344437248-20560-1-git-send-email-arnd@arndb.de> X-Provags-ID: V02:K0:FEt8siKoLCons0UQWXCPWIFcFQnCUL8gt+fIHkk2QDZ +DEkZ9Yn4hpNDBcOKZGxC+Gh7WSy5LfTKb7MiqPEFKFrdNizOE ciu/Wd+v6lf8sKGlwWqUNS/gsUhp11WjlRV27QAPZzIL6DAqWK Gf/YzvOWBR/4zL0iDkaxw6iSoWqTsp5i4xiRCc1K7w3qH18XrG bZWR6AbXUordnOiLlMEA8LzmKr4rSULk2OomR2zQOW3iAQbJcv zVbFiGshWMnkrA5FjxScH6uwt5TgovcrOdcdGfFMLfZa6d7kP6 jHcbRQYz0aqT8mEU8cVpqjCjXnxfGYivIMiZsHXwrjjleyNSdQ 6EQbhSNXdJlmDuSeuH1a6TDiJYb8EvW1VyOr+mRllOlJXXXyFo MC6abeOYCI8Ra2VWtFjHdxNTOlORkT6ZG0= X-Gm-Message-State: ALoCoQkwEejdWPcmNuwNNQe6K+p3wlKtVfC3E8IxE1PPF37hp5ppCw4tGlaHazuVx66vPBBPsdc3 Commit c2e935a7d "USB: move transceiver from ehci_hcd and ohci_hcd to hcd and rename it as phy" removed the last use of the "ohci" variable in the usb_hcd_omap_remove function, but left the variable in place unused. Without this patch, building omap1_defconfig results in: In file included from drivers/usb/host/ohci-hcd.c:1013:0: drivers/usb/host/ohci-omap.c: In function 'usb_hcd_omap_remove': drivers/usb/host/ohci-omap.c:406:19: warning: unused variable 'ohci' [-Wunused-variable] Signed-off-by: Arnd Bergmann Cc: Richard Zhao Cc: Alan Stern Cc: Greg Kroah-Hartman --- drivers/usb/host/ohci-omap.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index e7d75d2..f8b2d91 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c @@ -403,8 +403,6 @@ err0: static inline void usb_hcd_omap_remove (struct usb_hcd *hcd, struct platform_device *pdev) { - struct ohci_hcd *ohci = hcd_to_ohci (hcd); - usb_remove_hcd(hcd); if (!IS_ERR_OR_NULL(hcd->phy)) { (void) otg_set_host(hcd->phy->otg, 0);