summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-08-04 17:50:27 -0400
committerMark Brown <broonie@kernel.org>2018-08-06 07:35:16 -0400
commit10754bfc051256ab922b818de3ddd11391862a5f (patch)
tree10225cce0364b89c408c9b4a4682c25e5df56023 /sound
parent508e8641f89cc89554adbec3ce59bcd28a4ced4b (diff)
ASoC: tda7419: 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/tda7419.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/tda7419.c b/sound/soc/codecs/tda7419.c
index 225c210ac38f..7f3b79c5a563 100644
--- a/sound/soc/codecs/tda7419.c
+++ b/sound/soc/codecs/tda7419.c
@@ -142,9 +142,9 @@ struct tda7419_vol_control {
142static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc) 142static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc)
143{ 143{
144 if (tvc->reg == tvc->rreg) 144 if (tvc->reg == tvc->rreg)
145 return 0; 145 return false;
146 146
147 return 1; 147 return true;
148} 148}
149 149
150static int tda7419_vol_info(struct snd_kcontrol *kcontrol, 150static int tda7419_vol_info(struct snd_kcontrol *kcontrol,