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: 23230 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f199.google.com (mail-ob0-f199.google.com [209.85.214.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id F38E7202FA for ; Wed, 15 Jan 2014 10:05:24 +0000 (UTC) Received: by mail-ob0-f199.google.com with SMTP id vb8sf2878854obc.10 for ; Wed, 15 Jan 2014 02:05:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=9EaU65jzMs143K1chj4QMCrAGN7jN3//UuA9sVuzNFY=; b=F1+wr87rgFRcUzOMMZXy00Wm7P0+a09SAxQckMPrgaYQRxxXxK5Qb6FB3CSDy9voqS 5abqX6INHswiLHP9pwoIBEEH502GkgRgnZueVOmT68Eci0oifbWVaSUaFN6IbvPZR09x Hlj6nNXfX70VK8XIHluTYv0dwJumfJt4cg3vvsOzMl+ldcHmty8yyy0zE2ELCfqab8xe LbfUK4NTwxfXLqziYwVDg2thUIv0tq0yzuoPCBlOD+ko5rD/SXmduMsgb9KzkeSfQbhC CcS1kS1AfF0UvBMZCumDiP43bTE6kZwE+AGvRJmtRDcOGeDSzswdvlA6oUNagV0sKHLF DCWA== X-Gm-Message-State: ALoCoQkbMnnY+v64E4UIqt+PDHshZ6jMfbEZ5Et1u+0Q1Oq2hGDqULbhjze9t+iDYp5D/EBBztZF X-Received: by 10.42.110.198 with SMTP id r6mr364919icp.33.1389780324153; Wed, 15 Jan 2014 02:05:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.83.2 with SMTP id m2ls530907qey.37.gmail; Wed, 15 Jan 2014 02:05:24 -0800 (PST) X-Received: by 10.52.244.49 with SMTP id xd17mr814869vdc.26.1389780324051; Wed, 15 Jan 2014 02:05:24 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id sp7si1432548vdc.112.2014.01.15.02.05.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 02:05:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id jy13so317658veb.4 for ; Wed, 15 Jan 2014 02:05:24 -0800 (PST) X-Received: by 10.52.251.68 with SMTP id zi4mr778413vdc.25.1389780323988; Wed, 15 Jan 2014 02:05:23 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp261932ved; Wed, 15 Jan 2014 02:05:23 -0800 (PST) X-Received: by 10.66.161.38 with SMTP id xp6mr1479446pab.145.1389780322990; Wed, 15 Jan 2014 02:05:22 -0800 (PST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pk8si3254061pab.39.2014.01.15.02.05.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Jan 2014 02:05:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Received: by mail-pb0-f50.google.com with SMTP id rq2so927327pbb.37 for ; Wed, 15 Jan 2014 02:05:22 -0800 (PST) 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 Cc: t.figa@samsung.com, mturquette@linaro.org, sachin.kamat@linaro.org, patches@linaro.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-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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,