projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d40dfb8
)
ASoC: sh: rz-ssi: Fix wrong operator used issue
author
Biju Das
<biju.das.jz@bp.renesas.com>
Mon, 16 Aug 2021 18:23:36 +0000
(19:23 +0100)
committer
Mark Brown
<broonie@kernel.org>
Tue, 17 Aug 2021 12:35:01 +0000
(13:35 +0100)
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>
sound/soc/sh/rz-ssi.c
patch
|
blob
|
history
diff --git
a/sound/soc/sh/rz-ssi.c
b/sound/soc/sh/rz-ssi.c
index
69b45ee
..
f097c77
100644
(file)
--- 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);
}