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 <ag...@denx.de>
Cc: Remy Bohmer <li...@bohmer.net>
---
 drivers/usb/gadget/core.c |    4 ++--
 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 ) {
-- 
1.7.6.4

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to