public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 02/19] usbdev.c: Fix GCC 4.6 build warnings
@ 2011-11-15 18:01 Stefan Roese
  2011-11-15 23:01 ` Mike Frysinger
  2011-12-09  9:31 ` Wolfgang Denk
  0 siblings, 2 replies; 6+ messages in thread
From: Stefan Roese @ 2011-11-15 18:01 UTC (permalink / raw)
  To: u-boot

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 <sr@denx.de>
---
 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);
-- 
1.7.7.3

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-09 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-15 18:01 [U-Boot] [PATCH 02/19] usbdev.c: Fix GCC 4.6 build warnings Stefan Roese
2011-11-15 23:01 ` Mike Frysinger
2011-11-16  2:26   ` Marek Vasut
2011-12-09  9:31 ` Wolfgang Denk
2011-12-09  9:44   ` Stefan Roese
2011-12-09 11:18     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox