Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223564
b: refs/heads/master
c: 29b4494
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Dec 20, 2010
1 parent eaf0dae commit 3b093b4
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 1cd50f25614226e99ac7a1518311e8474ea024e3
refs/heads/master: 29b4494b1ff0157c1816ce8e2aea2abfdeb7f763
6 changes: 5 additions & 1 deletion trunk/drivers/media/IR/mceusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ static void mceusb_dev_printdata(struct mceusb_dev *ir, char *buf,
return;

/* skip meaningless 0xb1 0x60 header bytes on orig receiver */
if (ir->flags.microsoft_gen1 && !out)
if (ir->flags.microsoft_gen1 && !out && !offset)
skip = 2;

if (len <= skip)
Expand Down Expand Up @@ -807,6 +807,10 @@ static void mceusb_process_ir_data(struct mceusb_dev *ir, int buf_len)
if (ir->flags.microsoft_gen1)
i = 2;

/* if there's no data, just return now */
if (buf_len <= i)
return;

for (; i < buf_len; i++) {
switch (ir->parser_state) {
case SUBCMD:
Expand Down

0 comments on commit 3b093b4

Please sign in to comment.