Commit 7b462b05 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

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: default avatarColin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20221111165724.557152-1-colin.i.king@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 488c2c67
...@@ -1624,7 +1624,6 @@ wait:if (ftdi->disconnected > 0) { ...@@ -1624,7 +1624,6 @@ wait:if (ftdi->disconnected > 0) {
char data[30 *3 + 4]; char data[30 *3 + 4];
char *d = data; char *d = data;
int m = (sizeof(data) - 1) / 3 - 1; int m = (sizeof(data) - 1) / 3 - 1;
int l = 0;
struct u132_target *target = &ftdi->target[ed]; struct u132_target *target = &ftdi->target[ed];
struct u132_command *command = &ftdi->command[ struct u132_command *command = &ftdi->command[
COMMAND_MASK & ftdi->command_next]; COMMAND_MASK & ftdi->command_next];
...@@ -1647,7 +1646,6 @@ wait:if (ftdi->disconnected > 0) { ...@@ -1647,7 +1646,6 @@ wait:if (ftdi->disconnected > 0) {
} else if (i++ < m) { } else if (i++ < m) {
int w = sprintf(d, " %02X", *b++); int w = sprintf(d, " %02X", *b++);
d += w; d += w;
l += w;
} else } else
d += sprintf(d, " .."); d += sprintf(d, " ..");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment