usb: f_fs: replace unnecessary goto with a return
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 4 Jan 2016 19:58:12 +0000 (20:58 +0100)
committerFelipe Balbi <balbi@kernel.org>
Fri, 4 Mar 2016 13:14:32 +0000 (15:14 +0200)
commitb3591f67b9f9607fea5d854f9d481f44696d8ddc
tree2ffd69f95f7805506c51935d6ddaf8923aeb3e6c
parent3163c79efa653ea9832acb8efe55efd34a5f4ae6
usb: f_fs: replace unnecessary goto with a return

In ffs_epfile_io error label points to a return path which includes
a kfree(data) call.  However, at the beginning of the function data is
always NULL so some of the early ‘goto error’ can safely be replaced
with a trivial return statement.

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