From patchwork Tue Nov 15 18:01:52 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 125833 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 D4C6DB6F81 for ; Wed, 16 Nov 2011 05:02:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4EC3E28459; Tue, 15 Nov 2011 19:02:08 +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 1USpH+ECBBx3; Tue, 15 Nov 2011 19:02:08 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2B58728139; Tue, 15 Nov 2011 19:02:05 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4497A2845D for ; Tue, 15 Nov 2011 19:02:02 +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 osWL2056rJ41 for ; Tue, 15 Nov 2011 19:02:00 +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 mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.180]) by theia.denx.de (Postfix) with ESMTPS id 73F1228459 for ; Tue, 15 Nov 2011 19:01:58 +0100 (CET) X-RZG-AUTH: :IW0NeWC7b/q2i6W/qstXb1SBUuFnrGoheedClaTaNdBkW0QEactrHijJzVWK3h/vzb0= X-RZG-CLASS-ID: mo05 Received: from kubuntu.fritz.box (pD9FFBA40.dip.t-dialin.net [217.255.186.64]) by smtp.strato.de (fruni mo23) (RZmta 26.10 AUTH) with ESMTPA id I05c9enAFGFTML for ; Tue, 15 Nov 2011 19:01:55 +0100 (MET) From: Stefan Roese To: u-boot@lists.denx.de Date: Tue, 15 Nov 2011 19:01:52 +0100 Message-Id: <1321380112-6210-1-git-send-email-sr@denx.de> X-Mailer: git-send-email 1.7.7.3 Subject: [U-Boot] [PATCH 02/19] usbdev.c: Fix GCC 4.6 build warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Fix: usbdev.c: In function 'process_endpoints': usbdev.c:29:12: warning: variable 'temp1' set but not used [-Wunused-but-set-variable] usbdev.c:29:6: warning: variable 'temp' set but not used [-Wunused-but-set-variable] Signed-off-by: Stefan Roese --- arch/powerpc/cpu/ppc4xx/usbdev.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/cpu/ppc4xx/usbdev.c b/arch/powerpc/cpu/ppc4xx/usbdev.c index fe398af..fc7da89 100644 --- a/arch/powerpc/cpu/ppc4xx/usbdev.c +++ b/arch/powerpc/cpu/ppc4xx/usbdev.c @@ -26,7 +26,6 @@ void process_endpoints(unsigned short usb2d0_intrin) struct devrequest setup_packet; unsigned int *setup_packet_pt; unsigned char *packet_pt = NULL; - int temp, temp1; int i; @@ -44,8 +43,6 @@ void process_endpoints(unsigned short usb2d0_intrin) /*copy packet */ setup_packet_pt[0] = *(unsigned int *)USB2D0_FIFO_0; setup_packet_pt[1] = *(unsigned int *)USB2D0_FIFO_0; - temp = *(unsigned int *)USB2D0_FIFO_0; - temp1 = *(unsigned int *)USB2D0_FIFO_0; /*do some swapping */ setup_packet.value = swap_16(setup_packet.value);