summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-12-03 06:46:11 +0000
committerWolfgang Denk <wd@denx.de>2011-12-09 10:36:54 +0100
commit5fea7756da807ce3fdfb9facc1a623e26b2a33e3 (patch)
tree17acd2f1a16709886184896dfd10eea8fc32f6a9 /drivers/usb/gadget
parentc594a8de4ed8635d06f5f1588da93c962e13110f (diff)
downloadu-boot-imx-5fea7756da807ce3fdfb9facc1a623e26b2a33e3.zip
u-boot-imx-5fea7756da807ce3fdfb9facc1a623e26b2a33e3.tar.gz
u-boot-imx-5fea7756da807ce3fdfb9facc1a623e26b2a33e3.tar.bz2
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 <agust@denx.de> Cc: Remy Bohmer <linux@bohmer.net> Acked-by: Remy Bohmer <linux@bohmer.net> Acked-by: Marek Vasut <marek.vasut@gmail.com>
Diffstat (limited to 'drivers/usb/gadget')
-rw-r--r--drivers/usb/gadget/core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/gadget/core.c b/drivers/usb/gadget/core.c
index 67b6681..4f2ebab 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 ) {