Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2591169imm; Fri, 20 Jul 2018 01:06:16 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdZ+BEyOHMS4r91aYqKvjSNL/GuFL42w+c5FAVXPUJMEQqDRkxoCjd8yTkHRgrz3xmMHkKG X-Received: by 2002:a63:9d87:: with SMTP id i129-v6mr1021041pgd.395.1532073976425; Fri, 20 Jul 2018 01:06:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532073976; cv=none; d=google.com; s=arc-20160816; b=F0lDbNhvF7rSUIZMU+SZxQroyXTnfWmZa+BtcUlawuWl0PgjPAKhwRyY2OvfR/WXxn n7Uskiq8izbM6efOpminKpCtrN9yIQ1uKuxys5tughBgCFZR9loeNmErth10ObxDhkXA WpJVazfrZF5G1PsVCooMKNsgTygNie3uFnKg3Aty5DDzD0/X3d+n1V59Me/Rfgqoymrv i/fN32FuFypbVYVCUGJgJIO5dFPiIXACcFlKf+gDn2NpaHOhzLBmdwKc62JDknxjtZ+3 rLQ62k43LJvxfLEQQwy/Sel0f0bPm4rx0l8wbpXYzI1mfsYci7Au0p7u9cF06mGJtpkz hPFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=5JyidijKVdgKY0t6/2scagpIbjUKH6bnGZDT4A43jUE=; b=zaCMamI/Q59SU8ggE2K1xlNfSBi8hleHDxQPjXDX4PqoIa5M3fCvz8F4b9UtzR4WQH d/Lcq3/NpM5hTuAAzoCliL2AdcLpDaPh75as/o7DBOl/hfN9NgvjllWs8t+toPWEOAHx gIdpVRIl09HJ8ktPwQH/y7aeDX6CPqw6EhNzEydEsN5OGv7kOXtWzv5fbJQd0S8OWJRR 8YoFcXTY920iH/0bAjxp08OiLU3EM/cQgLhF2H4gP9esNFgtW3Vlwvw3KJ9IIiYkwX6B zHTO120SpOcSV2cDj31UvKeEMS1WRijQWBbYzy7IvTQ55KC5zM7JH2UZlKZxPU024Ax3 Vm1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r14-v6si1243022pfa.44.2018.07.20.01.06.01; Fri, 20 Jul 2018 01:06:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbeGTIwZ (ORCPT + 99 others); Fri, 20 Jul 2018 04:52:25 -0400 Received: from mout.perfora.net ([74.208.4.196]:43149 "EHLO mout.perfora.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727139AbeGTIwY (ORCPT ); Fri, 20 Jul 2018 04:52:24 -0400 Received: from localhost.localdomain.ziswiler.net ([89.217.215.226]) by mrelay.perfora.net (mreueus001 [74.208.5.2]) with ESMTPA (Nemesis) id 0M0SMt-1g0yzf2D6r-00udhf; Fri, 20 Jul 2018 10:04:35 +0200 From: Marcel Ziswiler To: alsa-devel@alsa-project.org, linux-tegra@vger.kernel.org Cc: Marcel Ziswiler , Jaroslav Kysela , Thierry Reding , Jonathan Hunter , Mark Brown , linux-kernel@vger.kernel.org, Takashi Iwai , Liam Girdwood Subject: [PATCH 1/2] ASoC: tegra: improve goto error label Date: Fri, 20 Jul 2018 10:04:23 +0200 Message-Id: <20180720080424.31505-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.14.4 X-Provags-ID: V03:K1:bxEoqQmibD/NUR4afCiYg8b5ZXqz8NK2vFQb3gMon70TjzZrHQ4 +yQelCMZ3wo5BAsH0/v4oQFWUG+oDMZ1MQ1dLYoCQeM3/3CyybrtqVExDXBvbsggVD+7RUL s7pnV/JTnFG0BdkGNzayA9EuIQ1moVpLMPbKAmC0ZhLIAESY34IFTjCRWrQNAA8ILbdEXYB lJNGmv3rnj5hiMI1PJIfA== X-UI-Out-Filterresults: notjunk:1;V01:K0:+m9PrdckY8U=:67vIO9I0zDvCshXSs0uO05 PIaXzTiKcr3ieip3050S7KGUHd8hSFRmaFFHKrtsoFVqDiottJcMi6FMPy4SjOHH98/i+K4Q7 YOLZPFHvLIlPLvI8i2Rv/xesHxv6YiUXCfh4ly6ODqrc6Xbkubj64mApR9Omvnyk8mt/ivoYL Odt/tdiccxYmMltTv1WsFqsRLNJNI4FuUcAMxsda1C0/gqNeYns0yYepvAWjO9h3WlMV8agbh NX0WbxN0rBYl1hwgBs23Mbxb+AVJpDj2Dp8WlOE3xT24a7xBepa3a1qgJTMn1iEZlb49NRGfC Y3EHx/5zwitm5zoHAAu9xWp7DuUCaG45xWP7+2mjadusYjrV1BDx2y2ljX45V3RFCnayrXwzZ cEufQWOE19f40B2SAqtVMSXFiemU9/JDIp/4f6plTQd1VxNn71Z1F8xw19vPnDYua+6XRUamO lFk6nMSxE3X5ZPmlodtPCgMW8g1JtZPwNGwJ8x4d8ms7Odb0dpALPmcsYkVP7pgUPfsf2bOAL 7ZFJR1pjjJWIUuoJTLVB2cck/LMEDsB7fFqzXQOXy50ZgwS4StTntWiWweiJvn5oxJARjrokU oRxGK76NtyWYBwFjvIXPtvHSh/EoPa42f98jTPOi6DaAfa84RZ1lL44857Z+xxihAkXvXmOFP pAIqcAIAwvi7+3cE6YUBrROfJRbAInBGuouKtZvVSDtmf/Pog2BYfwrp466pmmigHKOs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marcel Ziswiler While the two error labels "err" and "err_clk_put" goto the same place it is rather confusing that the earlier one is certainly used later again. Signed-off-by: Marcel Ziswiler --- sound/soc/tegra/tegra20_ac97.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/tegra/tegra20_ac97.c b/sound/soc/tegra/tegra20_ac97.c index affad46bf188..682ef33afb5f 100644 --- a/sound/soc/tegra/tegra20_ac97.c +++ b/sound/soc/tegra/tegra20_ac97.c @@ -377,7 +377,7 @@ static int tegra20_ac97_platform_probe(struct platform_device *pdev) ret = clk_prepare_enable(ac97->clk_ac97); if (ret) { dev_err(&pdev->dev, "clk_enable failed: %d\n", ret); - goto err; + goto err_clk_put; } ret = snd_soc_set_ac97_ops(&tegra20_ac97_ops); -- 2.14.4