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

usb: ftdi-elan: remove variable l

Variable l is just being accumulated and it's never used
anywhere else. The variable and the addition are redundant so
remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221111165724.557152-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
7b462b05 488c2c67

-2
-2
drivers/usb/misc/ftdi-elan.c
··· 1624 1624 char data[30 *3 + 4]; 1625 1625 char *d = data; 1626 1626 int m = (sizeof(data) - 1) / 3 - 1; 1627 - int l = 0; 1628 1627 struct u132_target *target = &ftdi->target[ed]; 1629 1628 struct u132_command *command = &ftdi->command[ 1630 1629 COMMAND_MASK & ftdi->command_next]; ··· 1646 1647 } else if (i++ < m) { 1647 1648 int w = sprintf(d, " %02X", *b++); 1648 1649 d += w; 1649 - l += w; 1650 1650 } else 1651 1651 d += sprintf(d, " .."); 1652 1652 }