Skip to contentSkip to conversation

usb_ohci.c: Fix GCC 4.6 build warnings

PATCH New Stefan Roese 2 participants 2 messages Nov 15, 2011 – Nov 16, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/19 usb_ohci.c: Fix GCC 4.6 build warnings

Fix:
usb_ohci.c: In function 'dl_transfer_length':
usb_ohci.c:756:8: warning: variable 'tdINFO' set but not used [-Wunused-but-set-variable]

---
 arch/powerpc/cpu/ppc4xx/usb_ohci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/powerpc/cpu/ppc4xx/usb_ohci.c +1 -2
index fe091e3..065730d 100644
@@ -753,10 +753,9 @@ static void td_submit_job (struct usb_device *dev, unsigned long pipe, void *buf
 
 static void dl_transfer_length(td_t * td)
 {
-	__u32 tdINFO, tdBE, tdCBP;
+	__u32 tdBE, tdCBP;
 	urb_priv_t *lurb_priv = &urb_priv;
 
-	tdINFO = ohci_cpu_to_le32 (td->hwINFO);
 	tdBE   = ohci_cpu_to_le32 (td->hwBE);
 	tdCBP  = ohci_cpu_to_le32 (td->hwCBP);
 
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 1/19 usb_ohci.c: Fix GCC 4.6 build warnings

Dear Stefan Roese,

Quoted 8 lines · In message <[email protected]> you wrote:

Fix:
usb_ohci.c: In function 'dl_transfer_length':
usb_ohci.c:756:8: warning: variable 'tdINFO' set but not used [-Wunused-but-set-variable]

---
 arch/powerpc/cpu/ppc4xx/usb_ohci.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Include the success of others in your dreams for your own success.