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

Input: tps6507x-ts - remove variable loops

The variable loops is being incremented but is never referenced,
it is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20221020181642.24417-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
51de52c9 8d4c313c

-2
-2
drivers/input/touchscreen/tps6507x-ts.c
··· 119 119 static s32 tps6507x_adc_standby(struct tps6507x_ts *tsc) 120 120 { 121 121 s32 ret; 122 - s32 loops = 0; 123 122 u8 val; 124 123 125 124 ret = tps6507x_write_u8(tsc, TPS6507X_REG_ADCONFIG, ··· 140 141 ret = tps6507x_read_u8(tsc, TPS6507X_REG_INT, &val); 141 142 if (ret) 142 143 return ret; 143 - loops++; 144 144 } 145 145 146 146 return ret;