]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adi - remove redundant variable z
authorColin Ian King <colin.i.king@gmail.com>
Mon, 21 Mar 2022 05:01:12 +0000 (22:01 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Mar 2022 05:02:00 +0000 (22:02 -0700)
commita949087c2285c8de4f0f204cab2d4eece9d929a2
treed7c9d50e8e6051a5150c928fcd477011b3db9cd5
parenta23ba3c043db9a2e8c967a3ff66dcedc5725afdf
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>
drivers/input/joystick/adi.c