Commit 899a9a7f authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

ASoC: amd: acp: Fix signedness bug in renoir_audio_probe()

The "adata->i2s_irq" is unsigned so this error handling will not
work.

Fixes: 3304a242 ("ASoC: amd: Use platform_get_irq_byname() to get the interrupt")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220304131449.GC28739@kiliSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8f2b025a
...@@ -282,9 +282,10 @@ static int renoir_audio_probe(struct platform_device *pdev) ...@@ -282,9 +282,10 @@ static int renoir_audio_probe(struct platform_device *pdev)
if (!adata->acp_base) if (!adata->acp_base)
return -ENOMEM; return -ENOMEM;
adata->i2s_irq = platform_get_irq_byname(pdev, "acp_dai_irq"); ret = platform_get_irq_byname(pdev, "acp_dai_irq");
if (adata->i2s_irq < 0) if (ret < 0)
return -ENODEV; return ret;
adata->i2s_irq = ret;
adata->dev = dev; adata->dev = dev;
adata->dai_driver = acp_renoir_dai; adata->dai_driver = acp_renoir_dai;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment