Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-11 09:50:59 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-11 09:51:14 +0200
commit137f5af6362649faf705f21ff5db4de6a7a0b7c1 (patch)
treef4e96f136d39984edae5215eb1b9a86ea2cea3e2
parent6d8c027521860a35a4be4e515892df6b41414c31 (diff)
HID: i2c-hid: Fix "incomplete report" noise (bsc#1051510).
-rw-r--r--drivers/hid/i2c-hid/i2c-hid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/i2c-hid/i2c-hid.c b/drivers/hid/i2c-hid/i2c-hid.c
index 7cc367d6e1b1..1c28847dcca1 100644
--- a/drivers/hid/i2c-hid/i2c-hid.c
+++ b/drivers/hid/i2c-hid/i2c-hid.c
@@ -476,7 +476,7 @@ static void i2c_hid_get_input(struct i2c_hid *ihid)
return;
}
- if ((ret_size > size) || (ret_size <= 2)) {
+ if ((ret_size > size) || (ret_size < 2)) {
dev_err(&ihid->client->dev, "%s: incomplete report (%d/%d)\n",
__func__, size, ret_size);
return;