Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306137
b: refs/heads/master
c: 004ac38
h: refs/heads/master
i:
  306135: bc24095
v: v3
  • Loading branch information
Srinivas Kandagatla authored and Mauro Carvalho Chehab committed Apr 10, 2012
1 parent 8b9f2fc commit 79e11ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 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: 28638601cf2440a7335eb2478b773dcc63e29e7e
refs/heads/master: 004ac38859c5bbcc4ffccc37d33be5e467d61c28
8 changes: 3 additions & 5 deletions trunk/drivers/media/rc/ir-raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ static int ir_raw_event_thread(void *data)
while (!kthread_should_stop()) {

spin_lock_irq(&raw->lock);
retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev));
retval = kfifo_len(&raw->kfifo);

if (!retval) {
if (retval < sizeof(ev)) {
set_current_state(TASK_INTERRUPTIBLE);

if (kthread_should_stop())
Expand All @@ -59,11 +59,9 @@ static int ir_raw_event_thread(void *data)
continue;
}

retval = kfifo_out(&raw->kfifo, &ev, sizeof(ev));
spin_unlock_irq(&raw->lock);


BUG_ON(retval != sizeof(ev));

mutex_lock(&ir_raw_handler_lock);
list_for_each_entry(handler, &ir_raw_handler_list, list)
handler->decode(raw->dev, ev);
Expand Down

0 comments on commit 79e11ac

Please sign in to comment.