ASoC: da7218: fix boolreturn.cocci warnings
authorkbuild test robot <fengguang.wu@intel.com>
Mon, 30 Nov 2015 18:40:51 +0000 (02:40 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 1 Dec 2015 19:29:09 +0000 (19:29 +0000)
sound/soc/codecs/da7218.c:3214:9-10: WARNING: return of 0/1 in function 'da7218_volatile_register' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/da7218.c

index ed0c9a26065be15151a73fae313f541c6f23bfe1..4fee7aeaadc7b17cc60aa4cfbe65fb5eff355b6a 100644 (file)
@@ -3211,9 +3211,9 @@ static bool da7218_volatile_register(struct device *dev, unsigned int reg)
        case DA7218_HPLDET_TEST:
        case DA7218_EVENT_STATUS:
        case DA7218_EVENT:
-               return 1;
+               return true;
        default:
-               return 0;
+               return false;
        }
 }