From: Mauro Carvalho Chehab Date: Wed, 3 Sep 2014 18:39:01 +0000 (-0300) Subject: [media] lm3560: simplify a boolean test X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1b21e2187adea385d9de53c8c861d9f56ea5bebe;p=linux-beck.git [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 --- 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);