tty/serial: atmel: remove redundant assignment to ret
authorColin Ian King <colin.king@canonical.com>
Fri, 9 Aug 2019 17:40:42 +0000 (18:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:54 +0000 (12:43 +0200)
commit8d41ab87630bdd249996a7ec1f138a23bcd2f5ff
tree84277ddb12315c2f50d93aabe434143a7977570c
parentc6c94eecb19bdc881518c5762474da6ec9f68c81
tty/serial: atmel: remove redundant assignment to ret

Variable ret is initialized to a value that is never read and it
is re-assigned later. 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/20190809174042.6276-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c