]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: tda7419: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:50:27 +0000 (16:50 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Aug 2018 11:35:16 +0000 (12:35 +0100)
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>
sound/soc/codecs/tda7419.c

index 225c210ac38f845a6ed54ec02300fffab218a020..7f3b79c5a56380b30414df884c75002873d18916 100644 (file)
@@ -142,9 +142,9 @@ struct tda7419_vol_control {
 static inline bool tda7419_vol_is_stereo(struct tda7419_vol_control *tvc)
 {
        if (tvc->reg == tvc->rreg)
-               return 0;
+               return false;
 
-       return 1;
+       return true;
 }
 
 static int tda7419_vol_info(struct snd_kcontrol *kcontrol,