aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/tuners/e4000.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 16:04:59 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 17:59:26 -0300
commita04557a20be0ff3733eca454abdd1bd4c5ebc3f2 (patch)
tree04a2daf7e3708c756ff691c0ec16707d2e67f667 /drivers/media/tuners/e4000.c
parent[media] via-camera: simplify boolean tests (diff)
downloadwireguard-linux-a04557a20be0ff3733eca454abdd1bd4c5ebc3f2.tar.xz
wireguard-linux-a04557a20be0ff3733eca454abdd1bd4c5ebc3f2.zip
[media] e4000: 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>
Diffstat (limited to 'drivers/media/tuners/e4000.c')
-rw-r--r--drivers/media/tuners/e4000.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/tuners/e4000.c b/drivers/media/tuners/e4000.c
index 90d93348f20c..cd9cf643f602 100644
--- 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 == false)
+ if (!s->active)
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 == false)
+ if (!s->active)
return 0;
switch (ctrl->id) {