usb: musb: gadget: read ep0 fifo only if rxcount is non zero
authorRavi Babu <ravibabu@ti.com>
Tue, 2 Apr 2013 07:52:42 +0000 (13:22 +0530)
committerFelipe Balbi <balbi@ti.com>
Tue, 2 Apr 2013 08:42:50 +0000 (11:42 +0300)
commit538bf07d897008e87eca49cde5970545f3814ac7
treebd1e62f349ab838c9f494184f5da9ee199671fff
parent96449f097e3874af0e8ddd721d3ebeed2ec389da
usb: musb: gadget: read ep0 fifo only if rxcount is non zero

avoid reading fifo rxcount is zero of fifo is empty, hence
read fifo only if rxcount is non-zero

Signed-off-by: Ravi Babu <ravibabu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget_ep0.c