From patchwork Wed Feb 26 02:44:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pankaj Dubey X-Patchwork-Id: 3720351 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 C6238BF13A for ; Wed, 26 Feb 2014 02:29:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E8BEC201FB for ; Wed, 26 Feb 2014 02:29:15 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C610E201F0 for ; Wed, 26 Feb 2014 02:29:14 +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 1WIUFC-0008UP-59; Wed, 26 Feb 2014 02:29:10 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIUF9-0007Ou-DN; Wed, 26 Feb 2014 02:29:07 +0000 Received: from mailout4.samsung.com ([203.254.224.34]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIUF6-0007Nc-MD for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2014 02:29:05 +0000 Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1L008AW07U2IA0@mailout4.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2014 11:28:43 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.51]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 91.12.14803.A515D035; Wed, 26 Feb 2014 11:28:42 +0900 (KST) X-AuditID: cbfee691-b7efc6d0000039d3-17-530d515a5841 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 82.8B.29263.A515D035; Wed, 26 Feb 2014 11:28:42 +0900 (KST) Received: from localhost.localdomain ([12.36.165.191]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N1L00I0O07PJNL0@mmp1.samsung.com>; Wed, 26 Feb 2014 11:28:42 +0900 (KST) From: Pankaj Dubey To: t.figa@samsung.com, mturquette@linaro.org Subject: [PATCH] clk: samsung: remove parentheses from return statements Date: Wed, 26 Feb 2014 11:44:48 +0900 Message-id: <1393382688-5429-1-git-send-email-pankaj.dubey@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrMLMWRmVeSWpSXmKPExsVy+t8zY92oQN5gg3nvLS02Pb7GanF51xw2 ixnn9zFZPJ1wkc1i0dYv7BbrZ7xmcWDzuHNtD5vH5iX1Hn1bVjF6fN4kF8ASxWWTkpqTWZZa pG+XwJUx5+1S5oK5QhW37nxlbGCcy9/FyMkhIWAi8XfKXUYIW0ziwr31bF2MXBxCAssYJU7+ ec/cxcgBVrT9FCtEfBGjxNmJj5kgnDYmiatffrGDdLMJ6Eo8eT+XGcQWAbLPL7sBVsQsMIVR 4nvbRxaQhLCAh8T7A7uZQGwWAVWJJYdPsYHYvALuEqtvTWKC2KYgMWeSDUivhMB3Nol57beZ IeoFJL5NPsQCUSMrsekAM8TVkhIHV9xgmcAouICRYRWjaGpBckFxUnqRqV5xYm5xaV66XnJ+ 7iZGSIBO3MF4/4D1IcZkoHETmaVEk/OBAZ5XEm9obGZkYWpiamxkbml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39N iN2/wlKwoTtEiaU4I9FQi7moOBEAWIDl98MCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140225_212904_950640_EA202C0B X-CRM114-Status: UNSURE ( 8.17 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -6.9 (------) Cc: Pankaj Dubey , linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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.2 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 fixed following checkpatch warning message "return is not a function, parentheses are not required" Signed-off-by: Pankaj Dubey --- drivers/clk/samsung/clk-pll.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/clk/samsung/clk-pll.c b/drivers/clk/samsung/clk-pll.c index 7fb0a28..32b483f 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -166,7 +166,7 @@ static inline bool samsung_pll35xx_mp_change( old_mdiv = (pll_con >> PLL35XX_MDIV_SHIFT) & PLL35XX_MDIV_MASK; old_pdiv = (pll_con >> PLL35XX_PDIV_SHIFT) & PLL35XX_PDIV_MASK; - return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv); + return rate->mdiv != old_mdiv || rate->pdiv != old_pdiv; } static int samsung_pll35xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -274,8 +274,8 @@ static inline bool samsung_pll36xx_mpk_change( old_pdiv = (pll_con0 >> PLL36XX_PDIV_SHIFT) & PLL36XX_PDIV_MASK; old_kdiv = (pll_con1 >> PLL36XX_KDIV_SHIFT) & PLL36XX_KDIV_MASK; - return (rate->mdiv != old_mdiv || rate->pdiv != old_pdiv || - rate->kdiv != old_kdiv); + return rate->mdiv != old_mdiv || rate->pdiv != old_pdiv || + rate->kdiv != old_kdiv; } static int samsung_pll36xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -387,8 +387,8 @@ static bool samsung_pll45xx_mp_change(u32 pll_con0, u32 pll_con1, old_pdiv = (pll_con0 >> PLL45XX_PDIV_SHIFT) & PLL45XX_PDIV_MASK; old_afc = (pll_con1 >> PLL45XX_AFC_SHIFT) & PLL45XX_AFC_MASK; - return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv - || old_afc != rate->afc); + return old_mdiv != rate->mdiv || old_pdiv != rate->pdiv + || old_afc != rate->afc; } static int samsung_pll45xx_set_rate(struct clk_hw *hw, unsigned long drate, @@ -534,8 +534,8 @@ static bool samsung_pll46xx_mpk_change(u32 pll_con0, u32 pll_con1, old_pdiv = (pll_con0 >> PLL46XX_PDIV_SHIFT) & PLL46XX_PDIV_MASK; old_kdiv = (pll_con1 >> PLL46XX_KDIV_SHIFT) & PLL46XX_KDIV_MASK; - return (old_mdiv != rate->mdiv || old_pdiv != rate->pdiv - || old_kdiv != rate->kdiv); + return old_mdiv != rate->mdiv || old_pdiv != rate->pdiv + || old_kdiv != rate->kdiv; } static int samsung_pll46xx_set_rate(struct clk_hw *hw, unsigned long drate,