usb: musb: gadget: fix compilation warning
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Mon, 22 Nov 2010 08:52:41 +0000 (14:22 +0530)
committerFelipe Balbi <balbi@ti.com>
Mon, 22 Nov 2010 10:42:09 +0000 (12:42 +0200)
Fixes below compilation warning when musb driver is compiled for
PIO mode:

drivers/usb/musb/musb_gadget.c: In function 'musb_g_rx':
drivers/usb/musb/musb_gadget.c:840:
warning: label 'exit' defined but not used

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c

index 363cfad003f831900deafc5726c11669e01b0053..c8de0e123f2c571857c14a3ab298f57ba1d9d532 100644 (file)
@@ -896,7 +896,9 @@ void musb_g_rx(struct musb *musb, u8 epnum)
                if (!request)
                        return;
        }
+#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_TUSB_OMAP_DMA)
 exit:
+#endif
        /* Analyze request */
        rxstate(musb, to_musb_request(request));
 }