diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 15:39:01 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 17:59:24 -0300 |
commit | 1b21e2187adea385d9de53c8c861d9f56ea5bebe (patch) | |
tree | 925aca7272cdfe38f1e8ce5e09d75385b2066f7f /drivers/media/pci/zoran | |
parent | afb666d1e7b0af5ec8f8b35b6f9d813d538c95e3 (diff) | |
download | talos-obmc-linux-1b21e2187adea385d9de53c8c861d9f56ea5bebe.tar.gz talos-obmc-linux-1b21e2187adea385d9de53c8c861d9f56ea5bebe.zip |
[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>
Diffstat (limited to 'drivers/media/pci/zoran')
-rw-r--r-- | drivers/media/pci/zoran/zoran_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/zoran/zoran_device.c b/drivers/media/pci/zoran/zoran_device.c index bf34b93f23ee..b6801e035ea4 100644 --- a/drivers/media/pci/zoran/zoran_device.c +++ b/drivers/media/pci/zoran/zoran_device.c @@ -682,7 +682,7 @@ set_videobus_dir (struct zoran *zr, switch (zr->card.type) { case LML33: case LML33R10: - if (lml33dpath == 0) + if (!lml33dpath) GPIO(zr, 5, val); else GPIO(zr, 5, 1); |