projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
064ee5a
)
ASoC: cs4270: use true and false for boolean values
author
Gustavo A. R. Silva
<gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:52:01 +0000
(16:52 -0500)
committer
Mark Brown
<broonie@kernel.org>
Mon, 6 Aug 2018 11:35:24 +0000
(12:35 +0100)
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>
sound/soc/codecs/cs4270.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs4270.c
b/sound/soc/codecs/cs4270.c
index
2a7a416
..
3c266ee
100644
(file)
--- 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;
}