summaryrefslogtreecommitdiffstats
path: root/sound/soc/sh
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2021-08-16 19:23:36 +0100
committerMark Brown <broonie@kernel.org>2021-08-17 13:35:01 +0100
commit1b5d1d3a2f77250707225509cadc17997bab4353 (patch)
tree0aea76314035bc8bd88558cb83fa52a1d8af36da /sound/soc/sh
parentd40dfb860ad72a32b9c2aeae739a2725f8ce011a (diff)
downloadlinux-1b5d1d3a2f77250707225509cadc17997bab4353.tar.bz2
ASoC: sh: rz-ssi: Fix wrong operator used issue
Fix wrong operator used issue reported by Coverity by replacing | operator with & operator. Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reported-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20210816182336.29959-1-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sh')
-rw-r--r--sound/soc/sh/rz-ssi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c
index 69b45ee2d445..f097c773d413 100644
--- a/sound/soc/sh/rz-ssi.c
+++ b/sound/soc/sh/rz-ssi.c
@@ -368,7 +368,7 @@ static int rz_ssi_stop(struct rz_ssi_priv *ssi, struct rz_ssi_stream *strm)
/* Wait for idle */
timeout = 100;
while (--timeout) {
- if (rz_ssi_reg_readl(ssi, SSISR) | SSISR_IIRQ)
+ if (rz_ssi_reg_readl(ssi, SSISR) & SSISR_IIRQ)
break;
udelay(1);
}