]> asedeno.scripts.mit.edu Git - linux.git/commit
ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 3 Jan 2019 20:14:08 +0000 (14:14 -0600)
committerKrzysztof Kozlowski <krzk@kernel.org>
Mon, 7 Jan 2019 19:41:01 +0000 (20:41 +0100)
commite2477233145f2156434afb799583bccd878f3e9f
treec35bec451e813a3da794690ada68e925d377cd8c
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify

Fix boolean expressions by using logical AND operator '&&' instead of
bitwise operator '&'.

This issue was detected with the help of Coccinelle.

Fixes: 4fa084af28ca ("ARM: OSIRIS: DVS (Dynamic Voltage Scaling) supoort.")
Cc: stable@vger.kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
[krzk: Fix -Wparentheses warning]
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
arch/arm/mach-s3c24xx/mach-osiris-dvs.c