Skip to contentSkip to conversation

Input: ti_am335x_tsc: remove redundant assignment to variable config

PATCH New Colin Ian King 1 participant 1 message Dec 5, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: ti_am335x_tsc: remove redundant assignment to variable config

Variable config is being assigned a value that is never read, it is being re-assigned a new value immediately afterwards. Remove the redundant assignment.

---
 drivers/input/touchscreen/ti_am335x_tsc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/input/touchscreen/ti_am335x_tsc.c +0 -1
index 83e685557a19..13241268ace0 100644
@@ -155,7 +155,6 @@ static void titsc_step_config(struct titsc *ts_dev)
 		titsc_writel(ts_dev, REG_STEPDELAY(i), STEPCONFIG_OPENDLY);
 	}
 
-	config = 0;
 	config = STEPCONFIG_MODE_HWSYNC |
 			STEPCONFIG_AVG_16 | ts_dev->bit_yn |
 			STEPCONFIG_INM_ADCREFM;
Signature · 1 line
2.33.1