[PATCH 2/2] ASoC: meson: meson-card-utils: Drop redundant probe error messages
| Newsgroups | org.kernel.vger.linux-sound,org.infradead.lists.linux-amlogic,org.infradead.lists.linux-arm-kernel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
From: bui duc phuc <[email protected]> The functions called here don't log the error themselves, but the error is already reported deeper in the call chain, so the dev_err() calls are redundant and can be removed. Signed-off-by: bui duc phuc <[email protected]> --- sound/soc/meson/meson-card-utils.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c index f2796dc84fa5..e4c3eda24d82 100644 --- a/sound/soc/meson/meson-card-utils.c +++ b/sound/soc/meson/meson-card-utils.c @@ -290,17 +290,13 @@ int meson_card_probe(struct platform_device *pdev) ret = meson_card_parse_of_optional(&priv->card, "audio-routing", snd_soc_of_parse_audio_routing); - if (ret) { - dev_err(dev, "error while parsing routing\n"); + if (ret) return ret; - } ret = meson_card_parse_of_optional(&priv->card, "audio-widgets", snd_soc_of_parse_audio_simple_widgets); - if (ret) { - dev_err(dev, "error while parsing widgets\n"); + if (ret) return ret; - } ret = meson_card_add_links(&priv->card); if (ret) -- 2.43.0