From 289d3bfa49511a285173d69e0d4a99f03e1b9a6f Mon Sep 17 00:00:00 2001 From: Kai Krakow Date: Sun, 24 Nov 2024 15:14:05 +0100 Subject: [PATCH] xpadneo, core: Fix coding style Fixes: commit 0001e4825f2da6ca0a1623f7 ("xpadneo: Add paddles support") Signed-off-by: Kai Krakow --- hid-xpadneo/src/hid-xpadneo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index 3e999890..8dcf3dbc 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -923,10 +923,10 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field, if ((usage->type == EV_KEY) && (usage->code == BTN_PADDLES(0))) { if (gamepad && xdata->profile == 0) { /* report the paddles individually */ - input_report_key(gamepad, BTN_PADDLES(0), value & 1 ? 1 : 0); - input_report_key(gamepad, BTN_PADDLES(1), value & 2 ? 1 : 0); - input_report_key(gamepad, BTN_PADDLES(2), value & 4 ? 1 : 0); - input_report_key(gamepad, BTN_PADDLES(3), value & 8 ? 1 : 0); + input_report_key(gamepad, BTN_PADDLES(0), (value & 1) ? 1 : 0); + input_report_key(gamepad, BTN_PADDLES(1), (value & 2) ? 1 : 0); + input_report_key(gamepad, BTN_PADDLES(2), (value & 4) ? 1 : 0); + input_report_key(gamepad, BTN_PADDLES(3), (value & 8) ? 1 : 0); xdata->gamepad_sync = true; } goto stop_processing;