mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 20:22:09 +00:00
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: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
e66928af36
commit
7f9dbf54c3
@ -219,14 +219,13 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
|
||||
{
|
||||
struct input_mt *mt = drvdat->input->mt;
|
||||
struct input_mt_slot *oldest;
|
||||
int oldid, count, i;
|
||||
int oldid, i;
|
||||
|
||||
if (drvdat->tp->contact_size < 5)
|
||||
return;
|
||||
|
||||
oldest = NULL;
|
||||
oldid = mt->trkid;
|
||||
count = 0;
|
||||
|
||||
for (i = 0; i < mt->num_slots; ++i) {
|
||||
struct input_mt_slot *ps = &mt->slots[i];
|
||||
@ -238,7 +237,6 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
|
||||
oldest = ps;
|
||||
oldid = id;
|
||||
}
|
||||
count++;
|
||||
}
|
||||
|
||||
if (oldest) {
|
||||
|
Loading…
Reference in New Issue
Block a user