]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMark Brown <broonie@linaro.org>
Sun, 17 Aug 2014 14:33:11 +0000 (09:33 -0500)
commit96908eccfed1dc0060d456217a092f994394fd71
tree433e3239e7041fbe628ea77921e6dd223b94412a
parentca09702717581356bb91e5bbfbb244eda384a004
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>
sound/soc/sh/rcar/gen.c