From d593fa3c452a2e80bd177b0d07091c5393ad1936 Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Mon, 4 Mar 2024 00:09:19 +0100 Subject: [PATCH] xpadneo, core: Remove explicit sync when not needed Sync is implicitly executed if there have been events on the affected input device. Maybe-fixes: https://github.com/atar-axis/xpadneo/issues/460 Signed-off-by: Kai Krakow --- hid-xpadneo/src/hid-xpadneo.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index c41fe0ea..39cc2ec2 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -928,7 +928,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field, /* Linux Gamepad Specification */ if (param_gamepad_compliance) { input_report_abs(gamepad, usage->code, value - 32768); - /* no need to sync here */ goto stop_processing; } break; @@ -968,7 +967,6 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field, if (!keyboard) goto keyboard_missing; input_report_key(keyboard, BTN_SHARE, value); - input_sync(keyboard); goto stop_processing; } else if (xdata->xbox_button_down && (usage->type == EV_KEY)) { if (!(xdata->quirks & XPADNEO_QUIRK_USE_HW_PROFILES)) {