aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2016-08-04 11:24:46 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-08-04 11:28:11 -0400
commit22fe874f380336315dd0440dad475ff326784b22 (patch)
tree009fdf14a736546916417f77b1ce6ba3feb72aef
parent1fcca89bd711800b041a1f5eb9052983df0b3194 (diff)
Input: silead - remove some dead code
buf[0] is an unsigned char. touch_nr is an int. The test for negative here doesn't make sense so I have removed it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/touchscreen/silead.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/silead.c b/drivers/input/touchscreen/silead.c
index 5f55167855d3..7379fe153cf9 100644
--- a/drivers/input/touchscreen/silead.c
+++ b/drivers/input/touchscreen/silead.c
@@ -147,9 +147,6 @@ static void silead_ts_read_data(struct i2c_client *client)
147 } 147 }
148 148
149 touch_nr = buf[0]; 149 touch_nr = buf[0];
150 if (touch_nr < 0)
151 return;
152
153 if (touch_nr > data->max_fingers) { 150 if (touch_nr > data->max_fingers) {
154 dev_warn(dev, "More touches reported then supported %d > %d\n", 151 dev_warn(dev, "More touches reported then supported %d > %d\n",
155 touch_nr, data->max_fingers); 152 touch_nr, data->max_fingers);