From: Biju Das Date: Mon, 16 Aug 2021 18:23:36 +0000 (+0100) Subject: ASoC: sh: rz-ssi: Fix wrong operator used issue X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1b5d1d3a2f77250707225509cadc17997bab4353;p=linux.git 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 Reported-by: Colin Ian King Link: https://lore.kernel.org/r/20210816182336.29959-1-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/rz-ssi.c b/sound/soc/sh/rz-ssi.c index 69b45ee2d445a..f097c773d413d 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); }