From patchwork Wed Jan 15 10:01:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3491071 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 4CA14C02DC for ; Wed, 15 Jan 2014 10:06:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB9012017D for ; Wed, 15 Jan 2014 10:06:32 +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 6CB1B20172 for ; Wed, 15 Jan 2014 10:06:31 +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 1W3NMA-0004u4-Mz; Wed, 15 Jan 2014 10:05:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3NM3-0001MD-4Q; Wed, 15 Jan 2014 10:05:47 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W3NM0-0001K7-FA for linux-arm-kernel@lists.infradead.org; Wed, 15 Jan 2014 10:05:45 +0000 Received: by mail-pa0-f45.google.com with SMTP id ld10so939856pab.4 for ; Wed, 15 Jan 2014 02:05:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9EaU65jzMs143K1chj4QMCrAGN7jN3//UuA9sVuzNFY=; b=duKRZXDIWUIII/cyL5PZqmTbDA8NFmmZcwHGLZcIofwvHlgDesRplVlFA33NmiRkHw TJ1L542Hcz/2jErJTu8Jr7FwLBiOgmoZZKBx3ExIfUyHXBQNR1RQr640/FC6V0irCjgg WPKih0cTSrMZXcONpbgjr7XdtJk+qJJdIa3Xb51LSJ/u7VDXglqVDHz4ypN5VxDynQNk XqEQ6S8p6AbleqLmW9DzOA/pNvGD1wpxyM13F+DKZkRnnVUOqNT4AE8937NJkiA3dOWn R1K+rT/FjoApNStKpiopsV8DrnsQEipkXxpyo7z0H46I7DHTY+6pZ3kV2ef1EE99rYGM jNmA== X-Gm-Message-State: ALoCoQnUPs9MISN8R3Qwxvo2oZlJqSs7V0aXmKDtvhI3HZtoxBC9yedPAZmme7AcUB8ahTtFK6Vz X-Received: by 10.66.227.200 with SMTP id sc8mr1572202pac.35.1389780322531; Wed, 15 Jan 2014 02:05:22 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id xu8sm9053403pab.0.2014.01.15.02.05.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 02:05:21 -0800 (PST) From: Sachin Kamat To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] clk: samsung: pll: Fix checkpatch errors Date: Wed, 15 Jan 2014 15:31:09 +0530 Message-Id: <1389780070-4959-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140115_050544_615705_CA993370 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: sachin.kamat@linaro.org, t.figa@samsung.com, mturquette@linaro.org, patches@linaro.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.5 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 Fixes the following type of checkpatch errors: ERROR: return is not a function, parentheses are not required Signed-off-by: Sachin Kamat --- 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 529e11dc2c6b..f2372fca0136 100644 --- a/drivers/clk/samsung/clk-pll.c +++ b/drivers/clk/samsung/clk-pll.c @@ -99,7 +99,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, @@ -207,8 +207,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, @@ -320,8 +320,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, @@ -467,8 +467,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,