Skip to content

Commit 8214bc5

Browse files
committed
uclogic: Actually re-route the changed report ID
1 parent 12b1cd8 commit 8214bc5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

hid-uclogic-core.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static int uclogic_raw_event(struct hid_device *hdev,
370370
return 0;
371371
}
372372

373-
do {
373+
while (true) {
374374
/* Tweak pen reports, if necessary */
375375
if ((report_id == params->pen.id) && (size >= 2)) {
376376
subreport_list_end =
@@ -398,7 +398,9 @@ static int uclogic_raw_event(struct hid_device *hdev,
398398
if (report_id == params->frame.id) {
399399
return uclogic_raw_event_frame(drvdata, data, size);
400400
}
401-
} while (false);
401+
402+
break;
403+
}
402404

403405
return 0;
404406
}

0 commit comments

Comments
 (0)