Skip to content

Commit 7f9dbf5

Browse files
ColinIanKingJiri Kosina
authored andcommitted
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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent e66928a commit 7f9dbf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/hid/hid-asus.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,13 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
219219
{
220220
struct input_mt *mt = drvdat->input->mt;
221221
struct input_mt_slot *oldest;
222-
int oldid, count, i;
222+
int oldid, i;
223223

224224
if (drvdat->tp->contact_size < 5)
225225
return;
226226

227227
oldest = NULL;
228228
oldid = mt->trkid;
229-
count = 0;
230229

231230
for (i = 0; i < mt->num_slots; ++i) {
232231
struct input_mt_slot *ps = &mt->slots[i];
@@ -238,7 +237,6 @@ static void asus_report_tool_width(struct asus_drvdata *drvdat)
238237
oldest = ps;
239238
oldid = id;
240239
}
241-
count++;
242240
}
243241

244242
if (oldest) {

0 commit comments

Comments
 (0)