OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2617dc
)
[media] e4000: simplify boolean tests
author
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Wed, 3 Sep 2014 19:04:59 +0000
(16:04 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:26 +0000
(17:59 -0300)
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>
drivers/media/tuners/e4000.c
patch
|
blob
|
history
diff --git
a/drivers/media/tuners/e4000.c
b/drivers/media/tuners/e4000.c
index
90d9334
..
cd9cf64
100644
(file)
--- a/
drivers/media/tuners/e4000.c
+++ b/
drivers/media/tuners/e4000.c
@@
-400,7
+400,7
@@
static int e4000_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
struct e4000 *s = container_of(ctrl->handler, struct e4000, hdl);
int ret;
- if (
s->active == fals
e)
+ if (
!s->activ
e)
return 0;
switch (ctrl->id) {
@@
-423,7
+423,7
@@
static int e4000_s_ctrl(struct v4l2_ctrl *ctrl)
struct dtv_frontend_properties *c = &fe->dtv_property_cache;
int ret;
- if (
s->active == fals
e)
+ if (
!s->activ
e)
return 0;
switch (ctrl->id) {