[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20151130184051.GA18104@lkp-ib04>
Date: Tue, 1 Dec 2015 02:40:51 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Adam Thomson <Adam.Thomson.Opensource@...semi.com>
Cc: kbuild-all@...org, alsa-devel@...a-project.org,
Mark Brown <broonie@...nel.org>,
Support Opensource <support.opensource@...semi.com>,
Liam Girdwood <lgirdwood@...il.com>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>, linux-kernel@...r.kernel.org
Subject: [PATCH] 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
CC: Adam Thomson <Adam.Thomson.Opensource@...semi.com>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.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;
}
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists