From: Anatolij Gustschin Date: Sat, 3 Dec 2011 06:46:11 +0000 (+0000) Subject: drivers/usb/gadget/core.c: Fix GCC 4.6 warning X-Git-Tag: v2011.12-rc1~36 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fea7756da807ce3fdfb9facc1a623e26b2a33e3;p=u-boot drivers/usb/gadget/core.c: Fix GCC 4.6 warning 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 Cc: Remy Bohmer Acked-by: Remy Bohmer Acked-by: Marek Vasut --- diff --git a/drivers/usb/gadget/core.c b/drivers/usb/gadget/core.c index 67b6681a6c..4f2ebab9e2 100644 --- a/drivers/usb/gadget/core.c +++ b/drivers/usb/gadget/core.c @@ -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 ) {