drivers/tty: remove redundant assignment to variable i and rename it to ret
authorColin Ian King <colin.king@canonical.com>
Sun, 5 Apr 2020 13:54:23 +0000 (14:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Apr 2020 14:12:34 +0000 (16:12 +0200)
commitcd9479a16720a6a38b3b614d2adece2413aebefc
treebb0781eb83190d83dc092681e680a31cadc32cf6
parent810bc0a5fafb8575b9406fcc8b0be77ff93a7be0
drivers/tty: remove redundant assignment to variable i and rename it to ret

The variable i is being assigned a value that is never read
and it is being updated later with a new value. The assignment
is redundant and can be removed.  Also rename i to ret as this new
name makes makes more sense.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200405135423.383466-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/serial_cs.c