mirror of
https://github.com/torvalds/linux.git
synced 2026-09-13 15:40:03 +02:00
ASoC: rockchip: rockchip_sai: Return the original error code
Return the original error code directly and drop the redundant error message since the called function already reports the failure. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Link: https://patch.msgid.link/20260806052136.21034-13-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
c97bdbf862
commit
7a2229ef7c
|
|
@ -1434,8 +1434,7 @@ static int rockchip_sai_probe(struct platform_device *pdev)
|
|||
ret = devm_request_irq(&pdev->dev, irq, rockchip_sai_isr,
|
||||
IRQF_SHARED, node->name, sai);
|
||||
if (ret)
|
||||
return dev_err_probe(&pdev->dev, ret,
|
||||
"Failed to request irq %d\n", irq);
|
||||
return ret;
|
||||
} else {
|
||||
dev_dbg(&pdev->dev, "Asked for an IRQ but got %d\n", irq);
|
||||
}
|
||||
|
|
@ -1458,7 +1457,7 @@ static int rockchip_sai_probe(struct platform_device *pdev)
|
|||
|
||||
ret = rockchip_sai_parse_paths(sai, node);
|
||||
if (ret)
|
||||
return dev_err_probe(&pdev->dev, ret, "Failed to parse paths\n");
|
||||
return ret;
|
||||
|
||||
/*
|
||||
* From here on, all register accesses need to be wrapped in
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user