ASoC: rcar: Use && instead of & for boolean expressions
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 17 Aug 2014 14:18:19 +0000 (16:18 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Wed, 4 Feb 2015 10:16:20 +0000 (11:16 +0100)
commit5a9961ad6472149ba1d3f2ec24e6712cc53203f3
tree44e581dcff06dbf171a8d5b90d0a52271011b7aa
parentcddffe783c890836910950d6a3d59ebc42167fbd
ASoC: rcar: Use && instead of & for boolean expressions

Sparse spits out the following warning:
sound/soc/sh/rcar/gen.c:250:21: warning: dubious: x & !y

It does this because sometimes mixing boolean and bit-wise logic has not the
intended result. In this case we are fine, but replacing the bit-wise '&' with
the boolean '&&' silences the sparse warning. The generated code for both cases
is the same.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit c8e6e960733f4a5835265c15429fced4d2f1595e)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
sound/soc/sh/rcar/gen.c