diff --git a/hid-xpadneo/src/hid-xpadneo.c b/hid-xpadneo/src/hid-xpadneo.c index bede173a..4e034cba 100644 --- a/hid-xpadneo/src/hid-xpadneo.c +++ b/hid-xpadneo/src/hid-xpadneo.c @@ -1013,7 +1013,7 @@ static int xpadneo_event(struct hid_device *hdev, struct hid_field *field, return 0; keyboard_missing: - if ((xdata->missing_reported && XPADNEO_MISSING_KEYBOARD) == 0) { + if ((xdata->missing_reported & XPADNEO_MISSING_KEYBOARD) == 0) { xdata->missing_reported |= XPADNEO_MISSING_KEYBOARD; hid_err(hdev, "keyboard not detected\n"); } @@ -1028,7 +1028,7 @@ static int xpadneo_init_hw(struct hid_device *hdev) struct xpadneo_devdata *xdata = hid_get_drvdata(hdev); if (!xdata->gamepad) { - if ((xdata->missing_reported && XPADNEO_MISSING_GAMEPAD) == 0) { + if ((xdata->missing_reported & XPADNEO_MISSING_GAMEPAD) == 0) { xdata->missing_reported |= XPADNEO_MISSING_GAMEPAD; hid_err(hdev, "gamepad not detected\n"); }