Commit 10754bfc authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Mark Brown

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: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 508e8641
...@@ -142,9 +142,9 @@ struct tda7419_vol_control { ...@@ -142,9 +142,9 @@ struct tda7419_vol_control {
static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc) static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc)
{ {
if (tvc->reg == tvc->rreg) if (tvc->reg == tvc->rreg)
return 0; return false;
return 1; return true;
} }
static int tda7419_vol_info(struct snd_kcontrol *kcontrol, static int tda7419_vol_info(struct snd_kcontrol *kcontrol,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment