OSDN Git Service

usb: musb: cppi41: exit early when tx fifo is empty
authorFelipe Balbi <balbi@ti.com>
Fri, 27 Feb 2015 19:21:14 +0000 (13:21 -0600)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:32 +0000 (15:33 -0500)
commitaf63429cf046210d7313805b579dd779d10ad1c0
tree1fb9054072c44aafcb6e5a71de648cb2fc5a15d7
parent1b61625f8b5d87caf9633d7dbfbaf1ea8270036d
usb: musb: cppi41: exit early when tx fifo is empty

as soon as we find out tx fifo is empty, there's
no need to break out of the loop just to have another
branch to complete the transfer. We can just complete
transfer and exit early.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_cppi41.c