Input: apbps2 - remove useless variable
Subsystems (2)
PATCH 1/1 Input: apbps2 - remove useless variable
Fix the following gcc warning:
drivers/input/serio/apbps2.c:106:16: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable].
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/input/serio/apbps2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/serio/apbps2.c +1 -2
@@ -103,7 +103,6 @@ static int apbps2_open(struct serio *io) {struct apbps2_priv *priv = io->port_data;int limit; -unsigned long tmp;/* clear error flags */ iowrite32be (0 , &priv->regs->status);
@@ -111,7 +110,7 @@ static int apbps2_open(struct serio *io)/* Clear old data if available (unlikely) */ limit =1024 ;while ((ioread32be (&priv->regs->status) &APBPS2_STATUS_DR ) && --limit) - tmp =ioread32be (&priv->regs->data); +ioread32be (&priv->regs->data);/* Enable reciever and it's interrupt */ iowrite32be (APBPS2_CTRL_RE |APBPS2_CTRL_RI , &priv->regs->ctrl);
Signature · 1 line
1.8.3.1
Quoted 7 lines · Jiapeng Chong
Fix the following gcc warning:
drivers/input/serio/apbps2.c:106:16: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied, thank you.
Signature · 1 line
Dmitry