diff options
author | Nenghua Cao <nhcao@marvell.com> | 2014-03-03 06:08:23 -0500 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-03 22:59:20 -0500 |
commit | 939d9f16994166156fa3d6dfece9c46b92e368e0 (patch) | |
tree | 5b09221df545e4eaeb61434196541180f9cc3614 | |
parent | b2cbb6e1c1544fc889ee7d6c6a6c229c20cd03cd (diff) |
ASoC: 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>
-rw-r--r-- | sound/soc/soc-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 393ff069af69..45a1fafdbd7b 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, | |||
2818 | unsigned int mask = (1 << fls(max)) - 1; | 2818 | unsigned int mask = (1 << fls(max)) - 1; |
2819 | unsigned int invert = mc->invert; | 2819 | unsigned int invert = mc->invert; |
2820 | int err; | 2820 | int err; |
2821 | bool type_2r = 0; | 2821 | bool type_2r = false; |
2822 | unsigned int val2 = 0; | 2822 | unsigned int val2 = 0; |
2823 | unsigned int val, val_mask; | 2823 | unsigned int val, val_mask; |
2824 | 2824 | ||
@@ -2836,7 +2836,7 @@ int snd_soc_put_volsw(struct snd_kcontrol *kcontrol, | |||
2836 | val |= val2 << rshift; | 2836 | val |= val2 << rshift; |
2837 | } else { | 2837 | } else { |
2838 | val2 = val2 << shift; | 2838 | val2 = val2 << shift; |
2839 | type_2r = 1; | 2839 | type_2r = true; |
2840 | } | 2840 | } |
2841 | } | 2841 | } |
2842 | err = snd_soc_update_bits_locked(codec, reg, val_mask, val); | 2842 | err = snd_soc_update_bits_locked(codec, reg, val_mask, val); |