usb: musb: honour the return value of dma_map_single()
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 13 Aug 2013 17:35:43 +0000 (19:35 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 27 Aug 2013 19:07:29 +0000 (14:07 -0500)
commit7b360f4287e52802b8c62e0608737e8bbfda67e1
tree8612951cac15b5e12f15a1b38679c4cb9176dfe7
parent5a68e9b57b1c1984dae8a9625bbf1a505d166035
usb: musb: honour the return value of dma_map_single()

Since dma_map_single() may fail it is good to actually check the return
code to see if it succeeded.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c
This page took 0.03587 seconds and 5 git commands to generate.