Commit a04557a2 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

[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: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent b2617dc3
...@@ -400,7 +400,7 @@ static int e4000_g_volatile_ctrl(struct v4l2_ctrl *ctrl) ...@@ -400,7 +400,7 @@ static int e4000_g_volatile_ctrl(struct v4l2_ctrl *ctrl)
struct e4000 *s = container_of(ctrl->handler, struct e4000, hdl); struct e4000 *s = container_of(ctrl->handler, struct e4000, hdl);
int ret; int ret;
if (s->active == false) if (!s->active)
return 0; return 0;
switch (ctrl->id) { switch (ctrl->id) {
...@@ -423,7 +423,7 @@ static int e4000_s_ctrl(struct v4l2_ctrl *ctrl) ...@@ -423,7 +423,7 @@ static int e4000_s_ctrl(struct v4l2_ctrl *ctrl)
struct dtv_frontend_properties *c = &fe->dtv_property_cache; struct dtv_frontend_properties *c = &fe->dtv_property_cache;
int ret; int ret;
if (s->active == false) if (!s->active)
return 0; return 0;
switch (ctrl->id) { switch (ctrl->id) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment