提交 7f9dbf54 编写于 作者: C Colin Ian King 提交者: Jiri Kosina

HID: asus: Remove unused variable in asus_report_tool_width()

Variable count is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.
Signed-off-by: NColin Ian King <colin.i.king@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 e66928af
...@@ -219,14 +219,13 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat) ...@@ -219,14 +219,13 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
{ {
struct input_mt *mt = drvdat->input->mt; struct input_mt *mt = drvdat->input->mt;
struct input_mt_slot *oldest; struct input_mt_slot *oldest;
int oldid, count, i; int oldid, i;
if (drvdat->tp->contact_size < 5) if (drvdat->tp->contact_size < 5)
return; return;
oldest = NULL; oldest = NULL;
oldid = mt->trkid; oldid = mt->trkid;
count = 0;
for (i = 0; i < mt->num_slots; ++i) { for (i = 0; i < mt->num_slots; ++i) {
struct input_mt_slot *ps = &mt->slots[i]; struct input_mt_slot *ps = &mt->slots[i];
...@@ -238,7 +237,6 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat) ...@@ -238,7 +237,6 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
oldest = ps; oldest = ps;
oldid = id; oldid = id;
} }
count++;
} }
if (oldest) { if (oldest) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册