From patchwork Thu Jul 18 09:55:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Elfring X-Patchwork-Id: 11048783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 691D213A4 for ; Thu, 18 Jul 2019 10:52:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 576F228496 for ; Thu, 18 Jul 2019 10:52:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4B4C728807; Thu, 18 Jul 2019 10:52:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 11C6E28806 for ; Thu, 18 Jul 2019 10:52:06 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B18481669; Thu, 18 Jul 2019 11:56:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B18481669 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1563443863; bh=O/yKUWViiwYxfmjT1yUrYsXWt0CEIoi0Z6KGdCyFhnM=; h=To:From:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=MIIXgTawJSmb4saX1ziH2TG+pgkFoxwsUYX/cdxtLGyOIAZtdAtvPn5XqlBotuTvK xV5Jqii2+rKdLgN6m6sZ3wgP59y//HdP9gFGp8UhOI0/My0DSbYtotOoP33S7evOPD MyYlUwdzPAN5uoQhrcotGVOGGNeAir74P0wpUYo4= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4247CF800C0; Thu, 18 Jul 2019 11:56:53 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id EA0E0F80362; Thu, 18 Jul 2019 11:56:51 +0200 (CEST) Received: from mout.web.de (mout.web.de [212.227.17.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 973A6F800C0 for ; Thu, 18 Jul 2019 11:56:45 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 973A6F800C0 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=web.de header.i=@web.de header.b="pks6e7p+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1563443780; bh=TgYOjUhDBEP1juVeE/AiHjQJY6XMoYGl3kH+EftdEj0=; h=X-UI-Sender-Class:To:From:Subject:Cc:Date; b=pks6e7p+ConDTX+soo38ISz0y9LJMrQCZyQM326PvDI8VfJSFAjuWwIzD4a716/jl k2b+rSkcx+EShd5GH2F4hvxWz+o0jjYBNAnu9ligWcWQseS71VQbIr8vY2oZ5Jo4iJ yFIIxuCU2ZcXcsBy3ZrPLo21dwT0aitanWt2MOnA= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from [192.168.1.2] ([78.48.59.79]) by smtp.web.de (mrweb103 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MN4Oy-1hlsMN3Vyi-006iYK; Thu, 18 Jul 2019 11:56:19 +0200 To: alsa-devel@alsa-project.org, Jaroslav Kysela , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Sangbeom Kim , Sylwester Nawrocki , Takashi Iwai , Wen Yang From: Markus Elfring Openpgp: preference=signencrypt Autocrypt: addr=Markus.Elfring@web.de; prefer-encrypt=mutual; keydata= mQINBFg2+xABEADBJW2hoUoFXVFWTeKbqqif8VjszdMkriilx90WB5c0ddWQX14h6w5bT/A8 +v43YoGpDNyhgA0w9CEhuwfZrE91GocMtjLO67TAc2i2nxMc/FJRDI0OemO4VJ9RwID6ltwt mpVJgXGKkNJ1ey+QOXouzlErVvE2fRh+KXXN1Q7fSmTJlAW9XJYHS3BDHb0uRpymRSX3O+E2 lA87C7R8qAigPDZi6Z7UmwIA83ZMKXQ5stA0lhPyYgQcM7fh7V4ZYhnR0I5/qkUoxKpqaYLp YHBczVP+Zx/zHOM0KQphOMbU7X3c1pmMruoe6ti9uZzqZSLsF+NKXFEPBS665tQr66HJvZvY GMDlntZFAZ6xQvCC1r3MGoxEC1tuEa24vPCC9RZ9wk2sY5Csbva0WwYv3WKRZZBv8eIhGMxs rcpeGShRFyZ/0BYO53wZAPV1pEhGLLxd8eLN/nEWjJE0ejakPC1H/mt5F+yQBJAzz9JzbToU 5jKLu0SugNI18MspJut8AiA1M44CIWrNHXvWsQ+nnBKHDHHYZu7MoXlOmB32ndsfPthR3GSv jN7YD4Ad724H8fhRijmC1+RpuSce7w2JLj5cYj4MlccmNb8YUxsE8brY2WkXQYS8Ivse39MX BE66MQN0r5DQ6oqgoJ4gHIVBUv/ZwgcmUNS5gQkNCFA0dWXznQARAQABtCZNYXJrdXMgRWxm cmluZyA8TWFya3VzLkVsZnJpbmdAd2ViLmRlPokCVAQTAQgAPhYhBHDP0hzibeXjwQ/ITuU9 Figxg9azB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wK2jQHw+U66qBFk8whA7B2uAU1QdGyPgahLYSOa4XAEGb6wbI FEE= Message-ID: Date: Thu, 18 Jul 2019 11:55:55 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Language: en-US X-Provags-ID: V03:K1:x1N9WkizngMMedlvA+2H9oFOxXnJ6uwcd1/0TQwNrZ9rwFMiCjD m0NbUIc3OeH405Jcoski7NgLD5QaQrdzpKFtdHWgIRLlMHPFjIaUMNwPrmTEoa3eOZGQtL6 4cMYXPxZqaReWb7evJC7qyY447r6SLefnQ/TcYfk6ZK7pY3eRD6Of1wy2btbRY3QL+5NaKj xkWsXlwNnqaSKtXC0s3vQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:DGYQBBR74xE=:4I1tkhejdpu5SkpnlkxDqH cNp2jZnUp9LDEkBkjh1S1XCbYE6MliY0N4EDyR/ZLbLHXKrvR9QdWzF0hK6LirmlMF1D75hJp 5eTDsETJDxwn5hXMzcemY96FkBkxRZoCSpyTTmH3ijYCciUNFdFDOxoGz900+FCt7Q3eexIvm ala7DfMnnw6AqyNQdaHSqddCeZljX3hm8S4wf9wbsZbZkuLgi/ZXMPzuKQ4w0nkfKQtEtQJsp nnTwDIXifBHIeA4yjkBgmN+IfrYeLqTQpHy2zF4Z6GGax9DMg9Tb5oAt5RS42t71FsevEKwxS lMvfR9qN6DSDjuFZYJ4PthB/t+amuUqeyRGRQ3eJVHMDDiH7KJYTN2UxMN4w646WT+/wt1Q/x 5Usd/hkMJdMEcNjoOU+DI2qOihLc6uIiZVFiQZYFceuuI7uv6fP9dtfrxMfUjp9ds9L0qqKEe 7ilFULllosR40BSKFr4PdVgCKcZez09EQ9eOme4nlVMmjrlXUgj1fX/oIX2SICyi9LH/16HUt iER6aq1HPQpEsbfkK9XsREEt3b/gBxkHfN7k1VyzR40ltKGIFxVz25b93tFNeHhoGImBtF44E cSQkozGWyPlIRInfCOgwJDjA6W13V23A8UuU+DnSXneqjpupTJ0Cs8MqcQw+unEez60gOGjmW MF+6ndOWrlckFYGWoUTAxsE/k55z6pmBZhEEpnYc7EpPJcY5W8x8HlC5p/MtrQRLXNRLMsz0Q IAv/+S1Fe/pd6tN+GB/HdbkgZV0x7jJ9CPBq9D8mBK1l8q7lxiWdBLU2bt3mNHqn/g3bOUp4Q XDZ7ZyVEoNPvhAxGvM+OQ91eIQ/AdqRWCwh3IVPYiAr+ITbrBdPyW/zCm+6nK/vMi/o+mwQlm GgI8C9og8J1cAXFZcg92pq23kuZ2wpD83k3RJrKfoAfoeGfNciDojAALES5qAeb9Eax2W/AYl 4g6aQeTBAV8LGotbEghT/5MBFXgcyi8TQAOwmnXP3lBt6vfM/ey6tMq7cHzM9qBtUiVPTzv64 Pzgd6rDcjttEe4OUrR/fCGQ0oQ1zSJKrWhFEp0lYraKPD3sMwBCfHzfrZoJO5aaKWehf3nQ4u wT0rpJwWDjNVc+PIPzctBenM0UhB9n6HJw8 Cc: kernel-janitors@vger.kernel.org, LKML Subject: [alsa-devel] [PATCH] ASoC: samsung: odroid: Use common code in odroid_audio_probe() X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring 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 --- sound/soc/samsung/odroid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.22.0 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);