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

Configure Feed

Select the types of activity you want to include in your feed.

usb: ftdi-elan: remove variable err_count

Variable err_count is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221020130649.1546112-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
375ac0b2 9abf2313

-2
-2
drivers/usb/misc/ftdi-elan.c
··· 1956 1956 int long_stop = 10; 1957 1957 int retry_on_timeout = 5; 1958 1958 int retry_on_empty = 10; 1959 - int err_count = 0; 1960 1959 retval = ftdi_elan_flush_input_fifo(ftdi); 1961 1960 if (retval) 1962 1961 return retval; ··· 2050 2051 continue; 2051 2052 } 2052 2053 } else { 2053 - err_count += 1; 2054 2054 dev_err(&ftdi->udev->dev, "error = %d\n", 2055 2055 retval); 2056 2056 if (read_stop-- > 0) {