Skip to content
Snippets Groups Projects
Commit 46cf1954 authored by Yang Yingliang's avatar Yang Yingliang Committed by Takashi Iwai
Browse files

ALSA: arm: pxa: pxa2xx-ac97-lib: fix return value check of platform_get_irq()


platform_get_irq() returns negative error number on failure, fix the
return value check in pxa2xx_ac97_hw_probe() and assign the error code
to 'ret'.

Fixes: 2548e6c7 ("ARM: pxa: pxa2xx-ac97-lib: use IRQ resource")
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221029082001.3207380-1-yangyingliang@huawei.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8d06679b
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment