From: kbuild test robot Date: Mon, 30 Nov 2015 18:40:51 +0000 (+0800) Subject: ASoC: da7218: fix boolreturn.cocci warnings X-Git-Tag: v4.5-rc1~80^2~13^2~4^2~3 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=112446aa2e1262c41fddfc664fa418ce2d615328;p=linux.git ASoC: da7218: fix boolreturn.cocci warnings 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 Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/da7218.c b/sound/soc/codecs/da7218.c index ed0c9a26065b..4fee7aeaadc7 100644 --- a/sound/soc/codecs/da7218.c +++ b/sound/soc/codecs/da7218.c @@ -3211,9 +3211,9 @@ static bool da7218_volatile_register(struct device *dev, unsigned int reg) case DA7218_HPLDET_TEST: case DA7218_EVENT_STATUS: case DA7218_EVENT: - return 1; + return true; default: - return 0; + return false; } }