usb: dwc2: Remove unnecessary request length checking
authorRazmik Karapetyan <razmik@synopsys.com>
Wed, 16 Nov 2016 23:33:59 +0000 (15:33 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 18 Nov 2016 11:54:53 +0000 (13:54 +0200)
commit01719c2ef06e8c6c26285f998280ab988151235f
treeeed22f6ae386474cf5013521213d3b39f7e54c6f
parentc3b22fe2e4cc45adb037e204e08910e10c5e9286
usb: dwc2: Remove unnecessary request length checking

Remove request length checking from dwc2_hsotg_unmap_dma() and
dwc2_hsotg_map_dma(). That checking is done in functions called from
those functions, usb_gadget_unmap_request_by_dev() and
usb_gadget_map_request_by_dev() respectively, so it's unnecessary.

Signed-off-by: Razmik Karapetyan <razmik@synopsys.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c