]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 07:19:02 +0000 (08:19 +0100)
commit4d01d0bef261d2fba271851a20945ab1dc172cf4
tree8b3089a55fbaa91dc42ac85c75e71f576d07745b
parent86e74461bcc5a9af310f663afaa1d43decf15149
ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify

commit e2477233145f2156434afb799583bccd878f3e9f upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-s3c24xx/mach-osiris-dvs.c