summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 23:49:02 +0200
committerMark Brown <broonie@kernel.org>2018-08-06 13:35:08 +0200
commit038541dae968dbef99edca4b22bbb2a7b4afdc83 (patch)
treee313113746c157e852a485d6811dd2b7d6338803
parentASoC: samsung: i2s: Mark expected switch fall-through (diff)
downloadlinux-038541dae968dbef99edca4b22bbb2a7b4afdc83.tar.xz
linux-038541dae968dbef99edca4b22bbb2a7b4afdc83.zip
ASoC: max9850: use true and false for boolean values
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>
-rw-r--r--sound/soc/codecs/max9850.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/max9850.c b/sound/soc/codecs/max9850.c
index 74d7f52c7e73..6e6134589588 100644
--- a/sound/soc/codecs/max9850.c
+++ b/sound/soc/codecs/max9850.c
@@ -52,9 +52,9 @@ static bool max9850_volatile_register(struct device *dev, unsigned int reg)
switch (reg) {
case MAX9850_STATUSA:
case MAX9850_STATUSB:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}