misc: pti: remove redundant assignments to retval
authorColin Ian King <colin.king@canonical.com>
Sun, 22 Dec 2019 22:22:24 +0000 (22:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jan 2020 14:16:51 +0000 (15:16 +0100)
commitb5a0d4bf2ee80e47629df0d7d8f4a7952ca39941
tree6767c462c2606221bde9ea73c47446e16c267451
parent444972b2b268c3272d39105bdc8d1266177f5d42
misc: pti: remove redundant assignments to retval

The variable retval is assigned with a value that is never read and
it is re-assigned a new value later on.  The assignment is redundant
and can be removed.  Clean up multiple occurrances of this pattern.

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