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

Input: ucb1400_ts - remove redundant variable penup

Variable penup is assigned a value but penup is never read later, it
is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link: https://lore.kernel.org/r/20211205000525.153999-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
53b90bd9 23dee6c6

+1 -3
+1 -3
drivers/input/touchscreen/ucb1400_ts.c
··· 186 186 { 187 187 struct ucb1400_ts *ucb = devid; 188 188 unsigned int x, y, p; 189 - bool penup; 190 189 191 190 if (unlikely(irqnr != ucb->irq)) 192 191 return IRQ_NONE; ··· 195 196 /* Start with a small delay before checking pendown state */ 196 197 msleep(UCB1400_TS_POLL_PERIOD); 197 198 198 - while (!ucb->stopped && !(penup = ucb1400_ts_pen_up(ucb))) { 199 - 199 + while (!ucb->stopped && !ucb1400_ts_pen_up(ucb)) { 200 200 ucb1400_adc_enable(ucb->ac97); 201 201 x = ucb1400_ts_read_xpos(ucb); 202 202 y = ucb1400_ts_read_ypos(ucb);