projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10754bf
)
ASoC: wm8990: use true and false for boolean values
author
Gustavo A. R. Silva
<
[email protected]
>
Sat, 4 Aug 2018 21:51:01 +0000
(16:51 -0500)
committer
Mark Brown
<
[email protected]
>
Mon, 6 Aug 2018 11:35:20 +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 <
[email protected]
>
Acked-by: Charles Keepax <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm8990.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm8990.c
b/sound/soc/codecs/wm8990.c
index 411b9eee88c27e9bbc779954ae43be4b6a5650c6..457bc437ce54af755bb3a90a07fc7c19241c2671 100644
(file)
--- a/
sound/soc/codecs/wm8990.c
+++ b/
sound/soc/codecs/wm8990.c
@@
-40,9
+40,9
@@
static bool wm8990_volatile_register(struct device *dev, unsigned int reg)
{
switch (reg) {
case WM8990_RESET:
- return
1
;
+ return
true
;
default:
- return
0
;
+ return
false
;
}
}