aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/amd/acp
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-08-19 08:23:09 +0300
committerMark Brown <broonie@kernel.org>2022-08-19 13:20:00 +0100
commita74ec0bf5b67eae87317646571116ce4b4166d95 (patch)
tree1d28d677fb4c1c08c0d68f8eb843a4f500db1532 /sound/soc/amd/acp
parentASoC: Change handling of unimplemented set_bclk_ratio (diff)
downloadlinux-dev-a74ec0bf5b67eae87317646571116ce4b4166d95.tar.xz
linux-dev-a74ec0bf5b67eae87317646571116ce4b4166d95.zip
ASoC: amd: acp: remove unnecessary NULL checks
The list iterator can never be NULL. Delete the bogus NULL checks. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/Yv8ePUuBfzaRu6xV@kili Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp')
-rw-r--r--sound/soc/amd/acp/acp-platform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/amd/acp/acp-platform.c b/sound/soc/amd/acp/acp-platform.c
index beee53aedeaf..85a81add4ef9 100644
--- a/sound/soc/amd/acp/acp-platform.c
+++ b/sound/soc/amd/acp/acp-platform.c
@@ -106,14 +106,14 @@ static irqreturn_t i2s_irq_handler(int irq, void *data)
spin_lock(&adata->acp_lock);
list_for_each_entry(stream, &adata->stream_list, list) {
- if (stream && (ext_intr_stat & stream->irq_bit)) {
+ if (ext_intr_stat & stream->irq_bit) {
writel(stream->irq_bit,
ACP_EXTERNAL_INTR_STAT(adata, rsrc->irqp_used));
snd_pcm_period_elapsed(stream->substream);
i2s_flag = 1;
}
if (adata->rsrc->no_of_ctrls == 2) {
- if (stream && (ext_intr_stat1 & stream->irq_bit)) {
+ if (ext_intr_stat1 & stream->irq_bit) {
writel(stream->irq_bit, ACP_EXTERNAL_INTR_STAT(adata,
(rsrc->irqp_used - 1)));
snd_pcm_period_elapsed(stream->substream);