From: Markus Elfring <Markus.Elfring@web.de>
To: alsa-devel@alsa-project.org, Jaroslav Kysela <perex@perex.cz>,
Krzysztof Kozlowski <krzk@kernel.org>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
Sangbeom Kim <sbkim73@samsung.com>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Takashi Iwai <tiwai@suse.com>, Wen Yang <wen.yang99@zte.com.cn>
Cc: LKML <linux-kernel@vger.kernel.org>, kernel-janitors@vger.kernel.org
Subject: [PATCH] ASoC: samsung: odroid: Use common code in odroid_audio_probe()
Date: Thu, 18 Jul 2019 11:55:55 +0200 [thread overview]
Message-ID: <c4c10934-f06f-24a8-1162-b023e4ab4066@web.de> (raw)
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Thu, 18 Jul 2019 11:42:29 +0200
Replace a function call and a return statement by a goto statement so that
a bit of common code will be reused at the end of this function.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
sound/soc/samsung/odroid.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sound/soc/samsung/odroid.c b/sound/soc/samsung/odroid.c
index f0f5fa9c27d3..d152ef8dfea3 100644
--- a/sound/soc/samsung/odroid.c
+++ b/sound/soc/samsung/odroid.c
@@ -316,8 +316,7 @@ static int odroid_audio_probe(struct platform_device *pdev)
}
of_node_put(cpu_dai);
- of_node_put(codec);
- return 0;
+ goto err_put_node;
err_put_clk_i2s:
clk_put(priv->clk_i2s_bus);
--
2.22.0
next reply other threads:[~2019-07-18 9:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-18 9:55 Markus Elfring [this message]
2019-07-18 9:58 ` [PATCH] ASoC: samsung: odroid: Use common code in odroid_audio_probe() Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c4c10934-f06f-24a8-1162-b023e4ab4066@web.de \
--to=markus.elfring@web.de \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=krzk@kernel.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=perex@perex.cz \
--cc=s.nawrocki@samsung.com \
--cc=sbkim73@samsung.com \
--cc=tiwai@suse.com \
--cc=wen.yang99@zte.com.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).