From patchwork Thu Oct 17 16:30:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3061951 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DF080BF924 for ; Thu, 17 Oct 2013 16:33:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BA242039F for ; Thu, 17 Oct 2013 16:33:17 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 09AA6203C4 for ; Thu, 17 Oct 2013 16:33:16 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWqUd-0007ic-Hp; Thu, 17 Oct 2013 16:32:11 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWqUR-0003HT-3X; Thu, 17 Oct 2013 16:31:59 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VWqTu-0003BH-Ct for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2013 16:31:28 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUT00FP5N7DIUD0@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2013 17:30:58 +0100 (BST) X-AuditID: cbfec7f5-b7ef66d00000795a-91-526010c2de3a Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id ED.0D.31066.2C010625; Thu, 17 Oct 2013 17:30:58 +0100 (BST) Received: from amdc1227.digital.local ([106.116.147.199]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0MUT00F39N7B2000@eusync1.samsung.com>; Thu, 17 Oct 2013 17:30:58 +0100 (BST) From: Tomasz Figa To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 3/8] clk: max77686: Refactor successful exit of probe function Date: Thu, 17 Oct 2013 18:30:37 +0200 Message-id: <1382027442-1992-4-git-send-email-t.figa@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1382027442-1992-1-git-send-email-t.figa@samsung.com> References: <1382027442-1992-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBJMWRmVeSWpSXmKPExsVy+t/xy7qHBBKCDBbMMrGYf+Qcq8XZpjfs Fve/HmW02PT4GqvFjPP7mCyeTrjIZnG6m9Vi/YzXLA4cHneu7WHzmHcy0GPzknqPvi2rGD0+ b5ILYI3isklJzcksSy3St0vgyviw8Ql7wQX2io5101gbGLezdTFyckgImEhsXfCXHcIWk7hw bz1QnItDSGApo8SyK3uhnD4mibvti5lBqtgE1CQ+NzwC6xYR0JCY0vWYHaSIWaCFSWLV+s9M IAlhAT+JXXMuMHYxcnCwCKhKrD+kChLmFXCU6J5+lRVim4LEsi9rwWZyCjhJzFt8ixHEFgKq +dv6nGkCI+8CRoZVjKKppckFxUnpuUZ6xYm5xaV56XrJ+bmbGCGh9XUH49JjVocYBTgYlXh4 JX/GBwmxJpYVV+YeYpTgYFYS4Y3jSggS4k1JrKxKLcqPLyrNSS0+xMjEwSnVwJjeKWd9+qR1 +oZdOy2mLnix6vm3WcujMkukjt2ZsCJPelGcgLXGVJ/dz3SEn37r3+k0Z0H3caa7/d/i5xxd HDFzppjMxTkB73h0Lc5/y3oyU7tF3lfWYqLA3l/5fqfrrVSYjE+tMGdc+cdbzyhw9ibnPf0K QgVO2jYnrd9N3KKa3vXQTqDAKVKJpTgj0VCLuag4EQAhlQPmCwIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131017_123126_582278_3C5E632B X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -7.3 (-------) Cc: devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Mike Turquette , Samuel Ortiz , Tomasz Figa , Kyungmin Park , Lee Jones X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The function can simply return 0, without jumping to a separate label, which does exactly the same. This patch does not introduce any functional change, just a clean-up. Signed-off-by: Tomasz Figa Signed-off-by: Kyungmin Park --- drivers/clk/clk-max77686.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/clk-max77686.c b/drivers/clk/clk-max77686.c index e40ecdb..5d78460 100644 --- a/drivers/clk/clk-max77686.c +++ b/drivers/clk/clk-max77686.c @@ -178,7 +178,7 @@ static int max77686_clk_probe(struct platform_device *pdev) platform_set_drvdata(pdev, max77686_clks); - goto out; + return 0; err_clk_pmic: clkdev_drop(max77686_clks[MAX77686_CLK_CP]->lookup); @@ -187,7 +187,6 @@ err_clk_cp: clkdev_drop(max77686_clks[MAX77686_CLK_AP]->lookup); kfree(max77686_clks[MAX77686_CLK_AP]->hw.clk); err_clk_ap: -out: return ret; }