usb: dwc3: gadget: drop the useless dma_sync_single* calls
authorFelipe Balbi <balbi@ti.com>
Thu, 8 Sep 2011 15:16:21 +0000 (18:16 +0300)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:05:26 +0000 (13:05 +0300)
commitbb7ea2841e9c8669ac31e4262f585729bf779bff
tree16e8eab49bf4c834c587b40f7bfbef5986e2f021
parent771f184ecebf34929a849eaa707aa463234254f7
usb: dwc3: gadget: drop the useless dma_sync_single* calls

if req->dma isn't DMA_ADDR_INVALID it means gadget driver
mapped the request or allocated from coherent, so it's
unnecessary to do anything.

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