Mauro Carvalho Chehab
160ac0babc
[media] omap: simplify test logic
...
instead of testing bools if they are false or true, just use
if (!foo) or if (foo). That makes the code easier to
read and shorter.
Also, properly initialize booleans with true or false.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:25 -03:00
Mauro Carvalho Chehab
1b21e2187a
[media] lm3560: simplify a boolean test
...
lml33dpatch is boolean. So, the possible values are
true or false.
Instead of using if (lml33dpath), just use
if (!lml33dpath).
That allows a faster mental parsing when analyzing the
code.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:24 -03:00
Mauro Carvalho Chehab
afb666d1e7
[media] lm3560: simplify boolean tests
...
Instead of using if (on == true), just use
if (on).
That allows a faster mental parsing when analyzing the
code.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:24 -03:00
Mauro Carvalho Chehab
5a7f7b79d8
[media] drxk_hard: simplify test logic
...
instead of testing if it is false or true, just use
if (!foo) or if (foo). That makes the code easier to
read and shorter.
Also, properly initialize booleans with true or false.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:23 -03:00
Mauro Carvalho Chehab
ad7b8c0227
[media] msi2500: simplify boolean tests
...
Instead of using if (foo == false), just use
if (!foo).
That allows a faster mental parsing when analyzing the
code.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:23 -03:00
Mauro Carvalho Chehab
61f6a0569c
[media] af9005: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:22 -03:00
Mauro Carvalho Chehab
235d89ec4a
[media] lmedm04: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:22 -03:00
Mauro Carvalho Chehab
f6b83c3e06
[media] au0828-dvb: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:21 -03:00
Mauro Carvalho Chehab
2816cc31e0
[media] ene_ir: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:20 -03:00
Mauro Carvalho Chehab
8b4b68186f
[media] radio: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:20 -03:00
Mauro Carvalho Chehab
6c515a44a8
[media] vivid-tpg: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:19 -03:00
Mauro Carvalho Chehab
68bbbd7912
[media] ti-vpe: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:19 -03:00
Mauro Carvalho Chehab
11b4c175d9
[media] omap3isp: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:18 -03:00
Mauro Carvalho Chehab
cdde1a9bae
[media] ov9740: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:18 -03:00
Mauro Carvalho Chehab
06e916b75a
[media] smiapp-core: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:17 -03:00
Mauro Carvalho Chehab
79a5ee7882
[media] tda10071: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:17 -03:00
Mauro Carvalho Chehab
2fe15e2013
[media] af9013: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Also, instead of testing foo == false, just use the
simplified notation if(!foo).
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:16 -03:00
Mauro Carvalho Chehab
afbd6eb4ba
[media] m88ds3103: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:16 -03:00
Mauro Carvalho Chehab
285c0b005f
[media] cxd2820r: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:15 -03:00
Mauro Carvalho Chehab
6a5e7fde3a
[media] af9013: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:14 -03:00
Mauro Carvalho Chehab
22bf3deb7e
[media] tuner-core: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:14 -03:00
Mauro Carvalho Chehab
7e6c8c1981
[media] em28xx: use true/false for boolean vars
...
Instead of using 0 or 1 for boolean, use the true/false
defines.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:13 -03:00
Mauro Carvalho Chehab
49bc89623d
[media] stv0900_core: don't allocate a temporary var
...
The error return code STV0900_NO_ERROR happens only once, at
the end of the functions. So, just return it directly.
This driver should actually be fixed to return standard
Linux error codes, instead of its own macros, but this
should be done on a separate patchset.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:13 -03:00
Mauro Carvalho Chehab
c611c908bb
[media] soc_camera: remove uneeded semicolons
...
We don't use semicolons after curly braces in the middle of the
code.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:12 -03:00
Mauro Carvalho Chehab
c3142a61e6
[media] bttv-driver: remove an uneeded semicolon
...
We don't use semicolons after curly braces in the middle of the
code.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com >
2014-09-03 17:59:12 -03:00