Merge branch 'for-4.19/i2c-hid' into for-linus
[muen/linux.git] / drivers / hid / i2c-hid / i2c-hid.c
index 4f532d9238fb6626d58a4ff5c057825199141dd6..2ce194a84868e0fe5e133e241a0de368dfe3becf 100644 (file)
@@ -484,7 +484,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;