提交 22fe874f 编写于 作者: D Dan Carpenter 提交者: Dmitry Torokhov

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: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 1fcca89b
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册