]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ASoC: wm8903: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:56:02 +0000 (16:56 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Aug 2018 11:35:52 +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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8903.c

index 7b8b6ef2f6325a80dc61b54184cbdb9f19f44a40..6cb3c153ba190203d1128d238c98d48bcfc97369 100644 (file)
@@ -251,10 +251,10 @@ static bool wm8903_volatile_register(struct device *dev, unsigned int reg)
        case WM8903_DC_SERVO_READBACK_2:
        case WM8903_DC_SERVO_READBACK_3:
        case WM8903_DC_SERVO_READBACK_4:
-               return 1;
+               return true;
 
        default:
-               return 0;
+               return false;
        }
 }