]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: ti_am335x_tsc - remove redundant assignment to variable config
authorColin Ian King <colin.i.king@gmail.com>
Thu, 8 Feb 2024 20:01:00 +0000 (12:01 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Feb 2024 18:53:24 +0000 (10:53 -0800)
commit0f82d108028a9dfea20e1c3c0ada1e64403002af
tree6c6ca583f055b16660d03d77c6a254f12cf3ea3d
parent18970d4f6317a3595cc592c3c7815f63d1818932
Input: ti_am335x_tsc - remove redundant assignment to variable config

The variable config is being initialized with a value that is never
read, it is being re-assigned in the next statement. The initialization
is redundant and can be removed.

Cleans up clang scan build warning:
drivers/input/touchscreen/ti_am335x_tsc.c:160:2: warning: Value stored
to 'config' is never read [deadcode.DeadStores]

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