usb: gadget: f_fs: fix setup request handling
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 10 Feb 2014 09:42:42 +0000 (10:42 +0100)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:46:57 +0000 (11:46 +0900)
commit7e71f505c946a97bcdfcb7077caa16bebacfeca1
tree47476f235f899b9c52987d0757adfbc9b17e4a68
parentdfa307ec116beda288c4cd996a5425902feedf4e
usb: gadget: f_fs: fix setup request handling

This patch fixes __ffs_ep0_queue_wait() function, which now returns number of
bytes transferred in USB request or error code in case of failure. This is
needed by ffs_ep0_read() function, when read data is copied to userspace.

It also cleans up code by removing usused variable ep0req_status.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: Michal Nazarewicz <mina86@mina86.com>
drivers/usb/gadget/f_fs.c
drivers/usb/gadget/u_fs.h