]> git.baikalelectronics.ru Git - kernel.git/commit
Input: aiptek - remove redundant assignment to variable ret
authorColin Ian King <colin.i.king@gmail.com>
Mon, 18 Apr 2022 18:46:32 +0000 (11:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 20 Apr 2022 20:41:17 +0000 (13:41 -0700)
commitcc773eba8e640b3ff91f6716dad79030f70a7e0d
tree49ad0f00087ebd59941bf74ec5797d9356e5eb2c
parent6569d6b19d35ed78870cbb01571e855ae6998574
Input: aiptek - remove redundant assignment to variable ret

Variable ret is being assigned a value that is never read, it is
being re-assigned again in either path of the if statement. The
assignment is redundant and can be removed.

Cleans up clang scan build warning:
Although the value stored to 'ret' is used in the enclosing expression,
the value is never actually read from 'ret' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20220418142457.84708-1-colin.i.king@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/tablet/aiptek.c