Skip to content

Commit a949087

Browse files
ColinIanKingdtor
authored andcommitted
Input: adi - remove redundant variable z
Variable z is being assigned a value that is never read, the variable is redundant and can be removed. Cleans up clang scan build warning: drivers/input/joystick/adi.c:139:6: warning: Although the value stored to 'z' is used in the enclosing expression, the value is never actually read from 'z' [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20220318002318.80519-1-colin.i.king@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent a23ba3c commit a949087

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/input/joystick

drivers/input/joystick/adi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static void adi_read_packet(struct adi_port *port)
123123
{
124124
struct adi *adi = port->adi;
125125
struct gameport *gameport = port->gameport;
126-
unsigned char u, v, w, x, z;
126+
unsigned char u, v, w, x;
127127
int t[2], s[2], i;
128128
unsigned long flags;
129129

@@ -136,7 +136,7 @@ static void adi_read_packet(struct adi_port *port)
136136
local_irq_save(flags);
137137

138138
gameport_trigger(gameport);
139-
v = z = gameport_read(gameport);
139+
v = gameport_read(gameport);
140140

141141
do {
142142
u = v;

0 commit comments

Comments
 (0)