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

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Colin Ian King and committed by
Dmitry Torokhov
0f82d108 18970d4f

-1
-1
drivers/input/touchscreen/ti_am335x_tsc.c
··· 157 157 n++ == 0 ? STEPCONFIG_OPENDLY : 0); 158 158 } 159 159 160 - config = 0; 161 160 config = STEPCONFIG_MODE_HWSYNC | 162 161 STEPCONFIG_AVG_16 | ts_dev->bit_yn | 163 162 STEPCONFIG_INM_ADCREFM;