drivers: uio: remove redundant assignment to variable retval
authorColin Ian King <colin.king@canonical.com>
Sat, 25 Apr 2020 12:44:48 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 13:55:15 +0000 (15:55 +0200)
commit56731c68f335ff0ce49e7d8f4fb45eb7805629be
tree2282493ae4a9a233637e21eed8676b345ea478bd
parent724142f8c42a7b01dbf9738eb00d7addbad6f862
drivers: uio: remove redundant assignment to variable retval

The variable retval is being initialized with a value that is
never read and it is being updated later with a new value. The
initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200425124448.139532-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio.c