summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-19 13:12:09 +0000
committerHeiko Schocher <hs@denx.de>2011-11-23 08:14:27 +0100
commit94191960cbddb58e425c7b9608700ed59a881d60 (patch)
tree07383ec4a1a465db6d154903f937daee73d235ff /drivers/usb
parent5721385b187b3154c7768e6c182501022f4e2e45 (diff)
downloadu-boot-imx-94191960cbddb58e425c7b9608700ed59a881d60.zip
u-boot-imx-94191960cbddb58e425c7b9608700ed59a881d60.tar.gz
u-boot-imx-94191960cbddb58e425c7b9608700ed59a881d60.tar.bz2
drivers/usb/musb/musb_hcd.c: Fix GCC 4.6 warning
Fix: musb_hcd.c: In function 'submit_control_msg': musb_hcd.c:851:6: warning: variable 'csr' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin <agust@denx.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/musb/musb_hcd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c
index 974bb31..325edb9 100644
--- a/drivers/usb/musb/musb_hcd.c
+++ b/drivers/usb/musb/musb_hcd.c
@@ -848,7 +848,6 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
int len, struct devrequest *setup)
{
int devnum = usb_pipedevice(pipe);
- u16 csr;
u8 devspeed;
#ifdef MUSB_NO_MULTIPOINT
@@ -862,7 +861,7 @@ int submit_control_msg(struct usb_device *dev, unsigned long pipe, void *buffer,
/* select control endpoint */
writeb(MUSB_CONTROL_EP, &musbr->index);
- csr = readw(&musbr->txcsr);
+ readw(&musbr->txcsr);
#ifndef MUSB_NO_MULTIPOINT
/* target addr and (for multipoint) hub addr/port */