ASoC: amd: pcm-dma: Fix signedness bug in acp3x_audio_probe()
The "adata->i2s_irq" variable is unsigned so this error handling
code 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/20220304131534.GD28739@kili
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
00925272f1
commit
9a33f5632c
|
@ -394,9 +394,10 @@ static int acp3x_audio_probe(struct platform_device *pdev)
|
||||||
if (!adata->acp3x_base)
|
if (!adata->acp3x_base)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
adata->i2s_irq = platform_get_irq(pdev, 0);
|
status = platform_get_irq(pdev, 0);
|
||||||
if (adata->i2s_irq < 0)
|
if (status < 0)
|
||||||
return -ENODEV;
|
return status;
|
||||||
|
adata->i2s_irq = status;
|
||||||
|
|
||||||
dev_set_drvdata(&pdev->dev, adata);
|
dev_set_drvdata(&pdev->dev, adata);
|
||||||
status = devm_snd_soc_register_component(&pdev->dev,
|
status = devm_snd_soc_register_component(&pdev->dev,
|
||||||
|
|
Loading…
Reference in New Issue