[media] lm3560: simplify a boolean test
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 18:39:01 +0000 (15:39 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:24 +0000 (17:59 -0300)
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>
drivers/media/pci/zoran/zoran_device.c

index bf34b93f23ee84fee373057778b1692059b58a84..b6801e035ea451c59800a95456425c249e14dd83 100644 (file)
@@ -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);