diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-10-24 17:11:02 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2022-11-02 14:11:06 +0100 |
commit | 7f9dbf54c3dc7170df86f7753abb41b5d7e8779e (patch) | |
tree | 476c4c42fd08ff2c856db9e06fad9ce26b312ad0 /drivers/hid | |
parent | e66928af3667a9d844a674976ba7765757ab68e2 (diff) | |
download | linux-7f9dbf54c3dc7170df86f7753abb41b5d7e8779e.tar.bz2 |
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>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/hid-asus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/hid/hid-asus.c b/drivers/hid/hid-asus.c index b59c3dafa6a4..f99752b998f3 100644 --- a/drivers/hid/hid-asus.c +++ b/drivers/hid/hid-asus.c @@ -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) { |