drivers/usb/gadget/ep0.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 3 Dec 2011 06:46:12 +0000 (06:46 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Dec 2011 09:37:09 +0000 (10:37 +0100)
Fix:
ep0.c: In function 'ep0_get_descriptor':
ep0.c:187:8: warning: variable 'cp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: Remy Bohmer <linux@bohmer.net>
Acked-by: Remy Bohmer <linux@bohmer.net>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
drivers/usb/gadget/ep0.c

index 2b4ec44e161768b2e6e5fb3eeccda344ae524325..22499d36bfe20213cbe063065a37c8bcd7260675 100644 (file)
@@ -184,7 +184,6 @@ static int ep0_get_descriptor (struct usb_device_instance *device,
                               int index)
 {
        int port = 0;           /* XXX compound device */
-       char *cp;
 
        /*dbg_ep0(3, "max: %x type: %x index: %x", max, descriptor_type, index); */
 
@@ -196,7 +195,6 @@ static int ep0_get_descriptor (struct usb_device_instance *device,
 
        /* setup tx urb */
        urb->actual_length = 0;
-       cp = (char*)urb->buffer;
 
        dbg_ep0 (2, "%s", USBD_DEVICE_DESCRIPTORS (descriptor_type));