diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 15:53:05 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 17:59:26 -0300 |
commit | b2617dc3eb3ed3e768919cda55b36571bc6c7bf8 (patch) | |
tree | 49347c11a5c8ce41518ae2a1cd193b9b5065013c /drivers/media/platform | |
parent | 160ac0babc0d8c382bdf32db238bf16a3d3fa0a5 (diff) | |
download | op-kernel-dev-b2617dc3eb3ed3e768919cda55b36571bc6c7bf8.zip op-kernel-dev-b2617dc3eb3ed3e768919cda55b36571bc6c7bf8.tar.gz |
[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 <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r-- | drivers/media/platform/via-camera.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/via-camera.c b/drivers/media/platform/via-camera.c index 00d4312..ae6870c 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 " \ |