Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 343072
b: refs/heads/master
c: 9afd09a
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Dec 6, 2012
1 parent 0f338e7 commit f8a7fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5b50fe7bea43d0658773c89ba410ecc56867ee6
refs/heads/master: 9afd09a1db93cc9084846c2b9bc0d1194743e5dc
2 changes: 1 addition & 1 deletion trunk/drivers/hid/i2c-hid/i2c-hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ static int i2c_hid_get_raw_report(struct hid_device *hid,

ret_count = ihid->inbuf[0] | (ihid->inbuf[1] << 8);

if (!ret_count)
if (ret_count <= 2)
return 0;

ret_count = min(ret_count, ask_count);
Expand Down

0 comments on commit f8a7fc6

Please sign in to comment.