]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
drivers/usb/gadget/core.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Sat, 3 Dec 2011 06:46:11 +0000 (06:46 +0000)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Dec 2011 09:36:54 +0000 (10:36 +0100)
Fix:
core.c: In function 'usbd_device_event_irq':
core.c:596:21: warning: variable 'state' 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/core.c

index 67b6681a6cce225ffefc49bfa64d10e910915fb5..4f2ebab9e2ab9afefb5326756c9e6e8ea16416a3 100644 (file)
@@ -671,9 +671,9 @@ void usbd_device_event_irq (struct usb_device_instance *device, usb_device_event
                usbdbg("event %d - not handled",event);
                break;
        }
-       /*usbdbg("%s event: %d oldstate: %d newstate: %d status: %d address: %d",
+       debug("%s event: %d oldstate: %d newstate: %d status: %d address: %d",
                device->name, event, state,
-               device->device_state, device->status, device->address); */
+               device->device_state, device->status, device->address);
 
        /* tell the bus interface driver */
        if( device->event ) {