diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 16:52:01 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 12:35:24 +0100 |
commit | c34c4515286f27e7e99d8a0011b4322d1de6c9bc (patch) | |
tree | f9abaed150b0ee9db4dc751c18bb545e03e1c198 | |
parent | 064ee5a370150534e12e5bac4ff81f86528e27ca (diff) | |
download | lwn-c34c4515286f27e7e99d8a0011b4322d1de6c9bc.tar.gz lwn-c34c4515286f27e7e99d8a0011b4322d1de6c9bc.zip |
ASoC: cs4270: use true and false for boolean values
Return statements in functions returning bool should use true or false
instead of an integer value.
This code was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/cs4270.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/cs4270.c b/sound/soc/codecs/cs4270.c index 2a7a4168c072..3c266eeb89bf 100644 --- a/sound/soc/codecs/cs4270.c +++ b/sound/soc/codecs/cs4270.c @@ -219,7 +219,7 @@ static bool cs4270_reg_is_volatile(struct device *dev, unsigned int reg) { /* Unreadable registers are considered volatile */ if ((reg < CS4270_FIRSTREG) || (reg > CS4270_LASTREG)) - return 1; + return true; return reg == CS4270_CHIPID; } |