[media] lirc_dev: simplify if statement in lirc_add_to_buf
authorAndi Shyti <andi.shyti@samsung.com>
Wed, 6 Jul 2016 09:01:19 +0000 (06:01 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 13 Jul 2016 18:06:29 +0000 (15:06 -0300)
commit19e565397cb92b0484c46c48498e0fe2d2491efa
tree25ca079ed0358d56685db0028977f41043d94db5
parent7fe579d29f66e7dee77c50f39947a70a74929f4f
[media] lirc_dev: simplify if statement in lirc_add_to_buf

The whole function is inside an 'if' statement
("if (ir->d.add_to_buf)").

Check the opposite of that statement at the beginning and exit,
this way we can have one level less of indentation.

Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/lirc_dev.c
This page took 0.036841 seconds and 5 git commands to generate.