Skip to content

Commit 22fe874

Browse files
Dan Carpenterdtor
authored andcommitted
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>
1 parent 1fcca89 commit 22fe874

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/input/touchscreen/silead.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,6 @@ static void silead_ts_read_data(struct i2c_client *client)
147147
}
148148

149149
touch_nr = buf[0];
150-
if (touch_nr < 0)
151-
return;
152-
153150
if (touch_nr > data->max_fingers) {
154151
dev_warn(dev, "More touches reported then supported %d > %d\n",
155152
touch_nr, data->max_fingers);

0 commit comments

Comments
 (0)