[RFC 1/3] ASoC: simple-card: Do not print "parse error" twice
From: Fabio Forni
Date: Mon Jan 12 2026 - 18:21:04 EST
If an error occurred on line 747, we'd print "parse error" and then go
to the `err` label, where we print the same message.
Let's remove the duplicated print.
Signed-off-by: Fabio Forni <development@xxxxxxxxxx>
---
sound/soc/generic/simple-card.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sound/soc/generic/simple-card.c b/sound/soc/generic/simple-card.c
index 5af6d1b308f2..8d36cbbfca1d 100644
--- a/sound/soc/generic/simple-card.c
+++ b/sound/soc/generic/simple-card.c
@@ -745,10 +745,8 @@ static int simple_probe(struct platform_device *pdev)
if (np && of_device_is_available(np)) {
ret = simple_parse_of(priv, li);
- if (ret < 0) {
- dev_err_probe(dev, ret, "parse error\n");
+ if (ret < 0)
goto err;
- }
} else {
struct simple_util_info *cinfo;
--
2.52.0