ttyprintk: remove redundant initialization of variable i
authorColin Ian King <colin.king@canonical.com>
Tue, 18 May 2021 18:21:26 +0000 (19:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 May 2021 12:19:50 +0000 (14:19 +0200)
commit18c092e5c35ece7fa1fe0b2c6f8c4a13da3fc641
treecf00f5efdaefbed0693e0c54d283c484377d0675
parent2ac62268a2c0f2ffafc19a7ced6972a9b1330389
ttyprintk: remove redundant initialization of variable i

The variable i is being initialized with a value that is never read,
it is being updated later on.  The assignment is redundant and can be
removed.

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