[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170615015029.GA5601@embeddedgus>
Date: Wed, 14 Jun 2017 20:50:29 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <garsilva@...eddedor.com>
Subject: [PATCH] USB: gtco: remove unnecessary variable assignments
Remove unnecessary variable assignments.
Variable _val_ is overwritten before the value stored in it can be used.
Addresses-Coverity-ID: 1397695
Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
---
drivers/input/tablet/gtco.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/input/tablet/gtco.c b/drivers/input/tablet/gtco.c
index b796e89..d9de13c 100644
--- a/drivers/input/tablet/gtco.c
+++ b/drivers/input/tablet/gtco.c
@@ -652,8 +652,6 @@ static void gtco_urb_callback(struct urb *urbinfo)
switch (device->buffer[0]) {
case 5:
/* Pressure is 9 bits */
- val = ((u16)(device->buffer[8]) << 1);
- val |= (u16)(device->buffer[7] >> 7);
input_report_abs(inputdev, ABS_PRESSURE,
device->buffer[8]);
--
2.5.0
Powered by blists - more mailing lists