Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250169
b: refs/heads/master
c: 990528e
h: refs/heads/master
i:
  250167: f7ccb92
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed May 20, 2011
1 parent ff8c3fb commit b6f928b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 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: 68a49a4a3dc9354b6daa24dd87e4e246b6da3c13
refs/heads/master: 990528ebe7b7f07f67e29e66700297b10557a706
13 changes: 7 additions & 6 deletions trunk/drivers/staging/lirc/lirc_sasem.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,19 +570,20 @@ static void incoming_packet(struct sasem_context *context,
unsigned char *buf = urb->transfer_buffer;
long ms;
struct timeval tv;
int i;

if (len != 8) {
printk(KERN_WARNING "%s: invalid incoming packet size (%d)\n",
__func__, len);
return;
}

#ifdef DEBUG
int i;
for (i = 0; i < 8; ++i)
printk(KERN_INFO "%02x ", buf[i]);
printk(KERN_INFO "\n");
#endif
if (debug) {
printk(KERN_INFO "Incoming data: ");
for (i = 0; i < 8; ++i)
printk(KERN_CONT "%02x ", buf[i]);
printk(KERN_CONT "\n");
}

/*
* Lirc could deal with the repeat code, but we really need to block it
Expand Down

0 comments on commit b6f928b

Please sign in to comment.