From: Dan Carpenter Date: Thu, 4 Aug 2016 15:24:46 +0000 (-0700) Subject: Input: silead - remove some dead code X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=22fe874f380336315dd0440dad475ff326784b22;p=deliverable%2Flinux.git 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 Signed-off-by: Dmitry Torokhov --- 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) } 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);