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

index 2a7a4168c072a0112939c2a8cd2440bf1fffa481..3c266eeb89bfb2eaec708783b4974a2d72e1b6a2 100644 (file)
@@ -219,7 +219,7 @@ static bool cs4270_reg_is_volatile(struct device *dev, unsigned int reg)
 {
        /* Unreadable registers are considered volatile */
        if ((reg < CS4270_FIRSTREG) || (reg > CS4270_LASTREG))
-               return 1;
+               return true;
 
        return reg == CS4270_CHIPID;
 }