From: Ming Lei <tom.leiming@xxxxxxxxx> Remove one 'ifdef' and one 'exit' symbol to make code more cleaner. Signed-off-by: Ming Lei <tom.leiming@xxxxxxxxx> --- drivers/usb/musb/musb_gadget.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 655b094..8ea1e2e 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -885,8 +885,9 @@ void musb_g_rx(struct musb *musb, u8 epnum) **/ csr = musb_readw(epio, MUSB_RXCSR); if ((csr & MUSB_RXCSR_RXPKTRDY) && - hw_ep->rx_double_buffered) - goto exit; + hw_ep->rx_double_buffered) { + rxstate(musb, to_musb_request(request)); + } return; } #endif @@ -896,9 +897,6 @@ 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)); } -- 1.7.3 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html