[Saucy][PATCH 1/1] Revert "HID: core: fix reporting of raw events"

Joseph Salisbury joseph.salisbury at canonical.com
Wed Oct 2 14:47:25 UTC 2013


BugLink: http://bugs.launchpad.net/bugs/1218004

This reverts commit b1a1442a23776756b254b69786848a94d92445ba.
---
 drivers/hid/hid-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index 5956445..d790025 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -1302,7 +1302,7 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
 
 	if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
 		ret = hdrv->raw_event(hid, report, data, size);
-		if (ret < 0) {
+		if (ret != 0) {
 			ret = ret < 0 ? ret : 0;
 			goto unlock;
 		}
-- 
1.7.9.5





More information about the kernel-team mailing list