[PATCH 6/9] HID: goodix-spi: Drop redundant report ID validation
From: Dmitry Torokhov
Date: Mon Oct 12 2026 - 23:43:41 EST
Now that the core HID request handling validates returned report IDs
for report retrieval requests centrally, the report ID check in the
Goodix SPI transport driver is redundant. Drop it.
Assisted-by: LLM
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
---
drivers/hid/hid-goodix-spi.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/hid/hid-goodix-spi.c b/drivers/hid/hid-goodix-spi.c
index 03d549efbdce..81603581ae40 100644
--- a/drivers/hid/hid-goodix-spi.c
+++ b/drivers/hid/hid-goodix-spi.c
@@ -461,11 +461,6 @@ static int goodix_hid_get_raw_report(struct hid_device *hid,
return error;
}
- if (buf[0] != reportnum) {
- dev_err(ts->dev, "incorrect report (%d vs %d expected)",
- buf[0], reportnum);
- return -EINVAL;
- }
return len;
}
--
2.56.0.385.gd3acb90ef8-goog