Skip to content

Commit 0f82d10

Browse files
ColinIanKingdtor
authored andcommitted
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>
1 parent 18970d4 commit 0f82d10

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/input/touchscreen/ti_am335x_tsc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ static void titsc_step_config(struct titsc *ts_dev)
157157
n++ == 0 ? STEPCONFIG_OPENDLY : 0);
158158
}
159159

160-
config = 0;
161160
config = STEPCONFIG_MODE_HWSYNC |
162161
STEPCONFIG_AVG_16 | ts_dev->bit_yn |
163162
STEPCONFIG_INM_ADCREFM;

0 commit comments

Comments
 (0)