ASoC: amd: pcm-dma: Fix signedness bug in acp_pdm_audio_probe()
The "adata->pdm_irq" variable is unsigned so the error handling will
not work.
Fixes: 87d71a1287
("ASoC: amd: pcm-dma: Use platform_get_irq() to get the interrupt")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220304131335.GB28739@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
899a9a7f62
commit
00925272f1
|
@ -399,9 +399,10 @@ static int acp_pdm_audio_probe(struct platform_device *pdev)
|
|||
if (!adata->acp_base)
|
||||
return -ENOMEM;
|
||||
|
||||
adata->pdm_irq = platform_get_irq(pdev, 0);
|
||||
if (adata->pdm_irq < 0)
|
||||
return -ENODEV;
|
||||
status = platform_get_irq(pdev, 0);
|
||||
if (status < 0)
|
||||
return status;
|
||||
adata->pdm_irq = status;
|
||||
|
||||
adata->capture_stream = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue