From: Mauro Carvalho Chehab Date: Wed, 3 Sep 2014 18:53:05 +0000 (-0300) Subject: [media] via-camera: simplify boolean tests X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2617dc3eb3ed3e768919cda55b36571bc6c7bf8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [media] via-camera: 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 --- diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index 00d431293190..ae6870cb8339 100644 --- a/drivers/media/platform/via-camera.c +++ b/drivers/media/platform/via-camera.c @@ -1276,7 +1276,7 @@ static bool viacam_serial_is_enabled(void) VIACAM_SERIAL_CREG, &cbyte); if ((cbyte & VIACAM_SERIAL_BIT) == 0) return false; /* Not enabled */ - if (override_serial == 0) { + if (!override_serial) { printk(KERN_NOTICE "Via camera: serial port is enabled, " \ "refusing to load.\n"); printk(KERN_NOTICE "Specify override_serial=1 to force " \