]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: codecs: wcd938x: fix boolreturn.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 16 Jun 2021 02:45:35 +0000 (10:45 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 16 Jun 2021 14:41:13 +0000 (15:41 +0100)
commitc274bbaaeb4197a2b31391646d8cd88f30ddd342
treed7bceafd05696f6324593de518747bc0a6a4c28e
parent1e1d0c50fe91fc551a8b1cee6837f6b0caf7a7d2
ASoC: codecs: wcd938x: fix boolreturn.cocci warning

Return statements in functions returning bool should use true/false
instead of 1/0.

Fix the following coccicheck warning:
./sound/soc/codecs/wcd938x.c:1190:9-10: WARNING: return of 0/1 in
function 'wcd938x_volatile_register' with return type bool.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1623811535-15841-1-git-send-email-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wcd938x.c