usb: dwc3: gadget: split special cases of ep_queue()
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 09:00:50 +0000 (12:00 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 25 Jun 2012 10:59:39 +0000 (13:59 +0300)
commitb511e5e76bf488cd3eec1048483a3898393a4dca
treea7dcbee7740cc0a0e12cec2b98c371a1b4bf227f
parent3daf74d78dfcd552445c35f1b82a271ca305ceb9
usb: dwc3: gadget: split special cases of ep_queue()

It makes it easier to read and also avoids
setting DWC3_EP_PENDING_REQUEST just so the
next branch evaluates true.

No functional changes otherwise.

Cc: Pratyush Anand <pratyush.anand@st.com>
Cc: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c