diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-04 16:49:02 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-08-06 12:35:08 +0100 |
commit | 038541dae968dbef99edca4b22bbb2a7b4afdc83 (patch) | |
tree | e313113746c157e852a485d6811dd2b7d6338803 /sound | |
parent | 5019027a566de4986a7f66017cf0d6d794fc155f (diff) | |
download | linux-038541dae968dbef99edca4b22bbb2a7b4afdc83.tar.gz linux-038541dae968dbef99edca4b22bbb2a7b4afdc83.tar.bz2 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>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/max9850.c | 4 |
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; } } |