Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201934
b: refs/heads/master
c: c228426
h: refs/heads/master
v: v3
  • Loading branch information
Jarod Wilson authored and Mauro Carvalho Chehab committed Aug 2, 2010
1 parent 5ac8859 commit 78b8119
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: 52e0a72a0c6f61c26a16b5684f4eb30a6fbf8b83
refs/heads/master: c2284261113f09bca4d362f5d51c008b65f55b6a
7 changes: 3 additions & 4 deletions trunk/drivers/media/IR/ir-raw-event.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ static DEFINE_SPINLOCK(ir_raw_handler_lock);
*
* Calls ir_raw_handler::ops for all registered IR handlers. It prevents
* new decode addition/removal while running, by locking ir_raw_handler_lock
* mutex. If an error occurs, it stops the ops. Otherwise, it returns a sum
* of the return codes.
* mutex. If an error occurs, we keep going, as in the decode case, each
* decoder must have a crack at decoding the data. We return a sum of the
* return codes, which will be either 0 or negative for current callers.
*/
#define RUN_DECODER(ops, ...) ({ \
struct ir_raw_handler *_ir_raw_handler; \
Expand All @@ -41,8 +42,6 @@ static DEFINE_SPINLOCK(ir_raw_handler_lock);
list_for_each_entry(_ir_raw_handler, &ir_raw_handler_list, list) { \
if (_ir_raw_handler->ops) { \
_rc = _ir_raw_handler->ops(__VA_ARGS__); \
if (_rc < 0) \
break; \
_sumrc += _rc; \
} \
} \
Expand Down

0 comments on commit 78b8119

Please sign in to comment.