usb: musb: check for zero byte in musb_read/write_fifo
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Fri, 20 Jul 2012 05:37:24 +0000 (11:07 +0530)
committerFelipe Balbi <balbi@ti.com>
Fri, 3 Aug 2012 06:34:41 +0000 (09:34 +0300)
commit603fe2b21d9fcde2022f9b52d95027bea29fe9e3
tree7cd9398bb5f39ae84655344f8fa1c7beaea261ed
parentd17d535fec07dbd298b3f65838ec8d63c26ab360
usb: musb: check for zero byte in musb_read/write_fifo

Added a check in musb_{read | write}_fifo for zero byte length.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c