[PATCH 3/3] ASoC: google: Remove redundant error message

From: phucduc . bui

Date: Thu Oct 29 2026 - 04:04:43 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Remove the redundant error message when devm_snd_soc_register_component()
fails. The errors handled here are already reported deeper in the
call chain, so the additional dev_err() call is unnecessary.

Signed-off-by: bui duc phuc <phucduc.bui@xxxxxxxxx>
---
sound/soc/google/chv3-i2s.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/google/chv3-i2s.c b/sound/soc/google/chv3-i2s.c
index ebc352bd9e9b..102f931da357 100644
--- a/sound/soc/google/chv3-i2s.c
+++ b/sound/soc/google/chv3-i2s.c
@@ -310,10 +310,8 @@ static int chv3_i2s_probe(struct platform_device *pdev)

res = devm_snd_soc_register_component(&pdev->dev, &chv3_i2s_comp,
&chv3_i2s_dai, 1);
- if (res) {
- dev_err(&pdev->dev, "couldn't register component: %d\n", res);
+ if (res)
return res;
- }

return 0;
}
--
2.43.0