Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/misc: ti-st: remove redundant assignment to variables i and flags

The variables i and flags are being initialized with values that are
never read. The initializations are 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/20200113123149.187555-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
b0bd9ae3 f896ee51

+2 -2
+2 -2
drivers/misc/ti-st/st_core.c
··· 736 736 737 737 static void st_tty_close(struct tty_struct *tty) 738 738 { 739 - unsigned char i = ST_MAX_CHANNELS; 740 - unsigned long flags = 0; 739 + unsigned char i; 740 + unsigned long flags; 741 741 struct st_data_s *st_gdata = tty->disc_data; 742 742 743 743 pr_info("%s ", __func__);