]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/usb/musb/musb_hcd.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 13:12:09 +0000 (13:12 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Nov 2011 07:14:27 +0000 (08:14 +0100)
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>
drivers/usb/musb/musb_hcd.c

index 974bb311cca473b0b19e58b140f962df669d2d05..325edb9677d48c69a427a8c3923a626b6fc7c9d0 100644 (file)
@@ -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 */