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)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 15 May 2014 05:27:07 +0000 (07:27 +0200)
commit31cbef6e66a6a1500265546ed282073cc261b637
tree79aed119c29db7d0bc435a5ca04978c38c71d6a2
parent94b4de70808e2790a428e504145d53c2d7529516
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