ttyprintk: remove redundant initialization of variable ret
authorColin Ian King <colin.king@canonical.com>
Thu, 11 Jun 2020 15:31:08 +0000 (16:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Jul 2020 12:50:51 +0000 (14:50 +0200)
commit877589350269e188cc19563745fd0f6dac14561b
tree747050088e8ce9612990ee397bf24847a3219cba
parent04aaca197f16aff608e19ee98b1e55f535d746be
ttyprintk: remove redundant initialization of variable ret

The variable ret 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/20200611153108.927614-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ttyprintk.c