mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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>
This commit is contained in:
parent
1fcca89bd7
commit
22fe874f38
1 changed files with 0 additions and 3 deletions
|
@ -147,9 +147,6 @@ static void silead_ts_read_data(struct i2c_client *client)
|
|||
}
|
||||
|
||||
touch_nr = buf[0];
|
||||
if (touch_nr < 0)
|
||||
return;
|
||||
|
||||
if (touch_nr > data->max_fingers) {
|
||||
dev_warn(dev, "More touches reported then supported %d > %d\n",
|
||||
touch_nr, data->max_fingers);
|
||||
|
|
Loading…
Reference in a new issue