summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorNenghua Cao <nhcao@marvell.com>2014-03-03 19:08:23 +0800
committerMark Brown <broonie@linaro.org>2014-03-04 12:02:28 +0800
commit64895739835c431fbc62dfabbe2267fff552a2f2 (patch)
tree03eb40b92296f7966adfdeb0af5d5cc291140526 /sound/soc
parent74d04c3efbc4f10990e5c4218ad3f65bfdcf3c75 (diff)
downloadop-kernel-dev-64895739835c431fbc62dfabbe2267fff552a2f2.zip
op-kernel-dev-64895739835c431fbc62dfabbe2267fff552a2f2.tar.gz
asoc: soc-core: fix coccinelle warnings
sound/soc/soc-core.c:2708:6-13: WARNING: Assignment of bool to 0/1 sound/soc/soc-core.c:2726:3-10: WARNING: Assignment of bool to 0/1 More information about semantic patching is available at http://coccinelle.lip6.fr/ Signed-off-by: Nenghua Cao <nhcao@marvell.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/soc-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index fe1df50..3477525 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2818,7 +2818,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
unsigned int mask = (1 << fls(max)) - 1;
unsigned int invert = mc->invert;
int err;
- bool type_2r = 0;
+ bool type_2r = false;
unsigned int val2 = 0;
unsigned int val, val_mask;
@@ -2836,7 +2836,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol,
val |= val2 << rshift;
} else {
val2 = val2 << shift;
- type_2r = 1;
+ type_2r = true;
}
}
err = snd_soc_update_bits_locked(codec, reg, val_mask, val);
OpenPOWER on IntegriCloud