uio: Reduce return paths from uio_write()
authorHamish Martin <hamish.martin@alliedtelesis.co.nz>
Wed, 13 Feb 2019 16:29:24 +0000 (16:29 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Feb 2019 07:09:13 +0000 (08:09 +0100)
commitcd4fe6339ccd9638da1304160abe60b84115dee5
treea4a9622a65b94ab671efd0e0098bccd7bd253f77
parent943f5f2a7d70f117a730dceb58131957f3c337c8
uio: Reduce return paths from uio_write()

commit 81daa406c2cc97d85eef9409400404efc2a3f756 upstream.

Drive all return paths for uio_write() through a single block at the
end of the function.

Signed-off-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tommi Rantala <tommi.t.rantala@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c