]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitb756475d3ebd47adc620f8de06f61e4298fe5286
tree385545a44332a20dd11e80d23634ee51b179db55
parent8379eddc7cac83e0f824305c52151485b8c0154c
ARM: s3c24xx: Fix boolean expressions in osiris_dvs_notify

BugLink: https://bugs.launchpad.net/bugs/1837952
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/mach-s3c24xx/mach-osiris-dvs.c