Input: silead - remove some dead code
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2016 15:24:46 +0000 (08:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 4 Aug 2016 15:28:11 +0000 (08:28 -0700)
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>
drivers/input/touchscreen/silead.c

index 5f55167855d361f52f1766e8ba852e32d27e6c62..7379fe153cf9946397203aadc2bd9767081589f9 100644 (file)
@@ -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);