]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: mv_u3d: mv_u3d_start_queue() refactoring
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 3 Nov 2016 13:16:32 +0000 (16:16 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 8 Nov 2016 10:52:14 +0000 (12:52 +0200)
commitdc9ef58884eadd54c159213a8f3358ff39148a64
treee3b48eb36520e355def7e12e197cace2a22e4b09
parent6ffd65154e23a4cf5d2da400e0fa7142a4474b98
usb: gadget: mv_u3d: mv_u3d_start_queue() refactoring

The patch improves readability of mv_u3d_start_queue()
by rearranging its code with two semantic modifications:
- assignment zero to ep->processing if usb_gadget_map_request() fails;
- propagation of error code from mv_u3d_req_to_trb() instead of
  hardcoded -ENOMEM.

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/mv_u3d_core.c