[U-Boot] [PATCH 6/7] drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used

2011-10-05 Thread Wolfgang Denk
Fix:
ohci-hcd.c: In function 'dl_transfer_length':
ohci-hcd.c:968:8: warning: variable 'tdINFO' set but not used 
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk 
Cc: Remy Bohmer 
---
 drivers/usb/host/ohci-hcd.c |3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index bc8bb20..c20d706 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -965,10 +965,9 @@ static void td_submit_job(struct usb_device *dev, unsigned 
long pipe,
 
 static void dl_transfer_length(td_t *td)
 {
-   __u32 tdINFO, tdBE, tdCBP;
+   __u32 tdBE, tdCBP;
urb_priv_t *lurb_priv = td->ed->purb;
 
-   tdINFO = m32_swap(td->hwINFO);
tdBE   = m32_swap(td->hwBE);
tdCBP  = m32_swap(td->hwCBP);
 
-- 
1.7.6.2

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 6/7] drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used

2011-10-08 Thread Remy Bohmer
Hi,

2011/10/5 Wolfgang Denk :
> Fix:
> ohci-hcd.c: In function 'dl_transfer_length':
> ohci-hcd.c:968:8: warning: variable 'tdINFO' set but not used 
> [-Wunused-but-set-variable]
>
> Signed-off-by: Wolfgang Denk 
> Cc: Remy Bohmer 
> ---
>  drivers/usb/host/ohci-hcd.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)
>
Acked-by: Remy Bohmer 

Kind regards,

Remy
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 6/7] drivers/usb/host/ohci-hcd.c: fix warning: variable ... set but not used

2011-10-09 Thread Wolfgang Denk
Dear Wolfgang Denk,

In message <1317849453-8216-6-git-send-email...@denx.de> you wrote:
> Fix:
> ohci-hcd.c: In function 'dl_transfer_length':
> ohci-hcd.c:968:8: warning: variable 'tdINFO' set but not used 
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Wolfgang Denk 
> Cc: Remy Bohmer 
> ---
>  drivers/usb/host/ohci-hcd.c |3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
The shortest unit of time in the multiverse is the News York  Second,
defined  as  the  period  of  time between the traffic lights turning
green and the cab behind you honking.
- Terry Pratchett, _Lords and Ladies_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot