Skip to content

Commit d593fa3

Browse files
committed
xpadneo, core: Remove explicit sync when not needed
Sync is implicitly executed if there have been events on the affected input device. Maybe-fixes: #460 Signed-off-by: Kai Krakow <kai@kaishome.de>
1 parent d2a3387 commit d593fa3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hid-xpadneo/src/hid-xpadneo.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
928928
/* Linux Gamepad Specification */
929929
if (param_gamepad_compliance) {
930930
input_report_abs(gamepad, usage->code, value - 32768);
931-
/* no need to sync here */
932931
goto stop_processing;
933932
}
934933
break;
@@ -968,7 +967,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field,
968967
if (!keyboard)
969968
goto keyboard_missing;
970969
input_report_key(keyboard, BTN_SHARE, value);
971-
input_sync(keyboard);
972970
goto stop_processing;
973971
} else if (xdata->xbox_button_down && (usage->type == EV_KEY)) {
974972
if (!(xdata->quirks & XPADNEO_QUIRK_USE_HW_PROFILES)) {

0 commit comments

Comments
 (0)