usb: f_fs: refactor ffs_epfile_io
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 4 Jan 2016 20:05:59 +0000 (21:05 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:32 +0000 (15:14 +0200)
commitae76e13477d8de0065cddbb6714e6b027562eaec
tree052b0a8c61aec73c5c251f5c7a0ab70892018ce2
parentb3591f67b9f9607fea5d854f9d481f44696d8ddc
usb: f_fs: refactor ffs_epfile_io

Eliminate one of the return paths by using a ‘goto error_mutex’ and
rearrange some if-bodies which results in reduction of the indention level
and thus hopefully makes the function easier to read and reason about.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/function/f_fs.c