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

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>

authored by

Colin Ian King and committed by
Dmitry Torokhov
a949087c a23ba3c0

+2 -2
+2 -2
drivers/input/joystick/adi.c
··· 123 123 { 124 124 struct adi *adi = port->adi; 125 125 struct gameport *gameport = port->gameport; 126 - unsigned char u, v, w, x, z; 126 + unsigned char u, v, w, x; 127 127 int t[2], s[2], i; 128 128 unsigned long flags; 129 129 ··· 136 136 local_irq_save(flags); 137 137 138 138 gameport_trigger(gameport); 139 - v = z = gameport_read(gameport); 139 + v = gameport_read(gameport); 140 140 141 141 do { 142 142 u = v;