ASoC: wm8990: use true and false for boolean values
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Sat, 4 Aug 2018 21:51:01 +0000 (16:51 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 6 Aug 2018 11:35:20 +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/wm8990.c

index 411b9eee88c27e9bbc779954ae43be4b6a5650c6..457bc437ce54af755bb3a90a07fc7c19241c2671 100644 (file)
@@ -40,9 +40,9 @@ static bool wm8990_volatile_register(struct device *dev, unsigned int reg)
 {
        switch (reg) {
        case WM8990_RESET:
-               return 1;
+               return true;
        default:
-               return 0;
+               return false;
        }
 }