diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 23:52:01 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 13:35:24 +0200 |
commit | c34c4515286f27e7e99d8a0011b4322d1de6c9bc (patch) | |
tree | f9abaed150b0ee9db4dc751c18bb545e03e1c198 /sound | |
parent | ASoC: wm8990: use true and false for boolean values (diff) | |
download | linux-c34c4515286f27e7e99d8a0011b4322d1de6c9bc.tar.xz linux-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>
Diffstat (limited to 'sound')
-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; } |