summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt5668.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-04-19 15:34:31 +0100
committerMark Brown <broonie@kernel.org>2018-04-19 15:40:01 +0100
commit4bb3f73a2da740e38f2e418bd0c468826046687a (patch)
tree35d3328e794b6806cf7507ef0cbf5cadb4208cdc /sound/soc/codecs/rt5668.c
parented55fe24d7cb6fdc391ab808f22f163bd28928be (diff)
downloadlinux-4bb3f73a2da740e38f2e418bd0c468826046687a.tar.bz2
ASoC: rt5668: fix incorrect 'and' operator
Currently logical and is being used instead of bitwise and. Fix this. Detected by CoverityScan, CID#1468008 ("Logical vs bitwise operator") Fixes: d59fb2856223 ("ASoC: rt5668: add rt5668B codec driver") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/rt5668.c')
-rw-r--r--sound/soc/codecs/rt5668.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/rt5668.c b/sound/soc/codecs/rt5668.c
index 52a343f96eb2..3c19d03f2446 100644
--- a/sound/soc/codecs/rt5668.c
+++ b/sound/soc/codecs/rt5668.c
@@ -1194,7 +1194,7 @@ static int set_filter_clk(struct snd_soc_dapm_widget *w,
int ref, val, reg, idx = -EINVAL;
static const int div[] = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32, 48};
- val = snd_soc_component_read32(component, RT5668_GPIO_CTRL_1) &&
+ val = snd_soc_component_read32(component, RT5668_GPIO_CTRL_1) &
RT5668_GP4_PIN_MASK;
if (w->shift == RT5668_PWR_ADC_S1F_BIT &&
val == RT5668_GP4_PIN_ADCDAT2)