[PATCH 12/14] ASoC: rockchip: rockchip_sai: Return the original error code
phucduc.bui at gmail.com
phucduc.bui at gmail.com
Wed Aug 5 22:21:34 PDT 2026
From: bui duc phuc <phucduc.bui at gmail.com>
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 at gmail.com>
---
sound/soc/rockchip/rockchip_sai.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/soc/rockchip/rockchip_sai.c b/sound/soc/rockchip/rockchip_sai.c
index 522b4f4f6a7a..1fdec12a0d4e 100644
--- a/sound/soc/rockchip/rockchip_sai.c
+++ b/sound/soc/rockchip/rockchip_sai.c
@@ -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
--
2.43.0
More information about the linux-arm-kernel
mailing list