Re: [PATCH v1 19/27] usb: musb: remove exit symbol to avoid using of ifdef in musb_g_rx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

On 21-12-2010 19:14, tom.leiming@xxxxxxxxx wrote:

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>
[...]

diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 65f1078..01a0269 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));
+			}

   {} not needed here.

WBR, Sergei
--
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


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux