* [PATCH] ASoC: da7218: fix boolreturn.cocci warnings
[not found] <201512010249.CKNe08uI%fengguang.wu@intel.com>
@ 2015-11-30 18:40 ` kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2015-11-30 18:40 UTC (permalink / raw)
To: Adam Thomson
Cc: kbuild-all, alsa-devel, Mark Brown, Support Opensource,
Liam Girdwood, Jaroslav Kysela, Takashi Iwai, linux-kernel
sound/soc/codecs/da7218.c:3214:9-10: WARNING: return of 0/1 in function 'da7218_volatile_register' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci
CC: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---
da7218.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/sound/soc/codecs/da7218.c
+++ b/sound/soc/codecs/da7218.c
@@ -3211,9 +3211,9 @@ static bool da7218_volatile_register(str
case DA7218_HPLDET_TEST:
case DA7218_EVENT_STATUS:
case DA7218_EVENT:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-30 18:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <201512010249.CKNe08uI%fengguang.wu@intel.com>
2015-11-30 18:40 ` [PATCH] ASoC: da7218: fix boolreturn.cocci warnings kbuild test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®