From patchwork Mon Nov 30 09:52:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mutharaju, Prasanna (P.)" X-Patchwork-Id: 7722651 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 34971BEEE1 for ; Mon, 30 Nov 2015 09:52:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 89328204D8 for ; Mon, 30 Nov 2015 09:52:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 87A94204CF for ; Mon, 30 Nov 2015 09:52:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752094AbbK3Jwj (ORCPT ); Mon, 30 Nov 2015 04:52:39 -0500 Received: from mail-am1on0140.outbound.protection.outlook.com ([157.56.112.140]:55226 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751816AbbK3Jwi convert rfc822-to-8bit (ORCPT ); Mon, 30 Nov 2015 04:52:38 -0500 Received: from AM3PR06MB0902.eurprd06.prod.outlook.com (10.161.34.19) by AM3PR06MB0904.eurprd06.prod.outlook.com (10.161.34.21) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 30 Nov 2015 09:52:35 +0000 Received: from AM3PR06MB0902.eurprd06.prod.outlook.com ([10.161.34.19]) by AM3PR06MB0902.eurprd06.prod.outlook.com ([10.161.34.19]) with mapi id 15.01.0331.023; Mon, 30 Nov 2015 09:52:35 +0000 From: "Mutharaju, Prasanna (P.)" To: Krzysztof Kozlowski , =?iso-8859-1?Q?Uwe_Kleine-K=F6nig?= CC: Kukjin Kim , Sylwester Nawrocki , Tomasz Figa , "Michael Turquette" , Stephen Boyd , "linux-clk@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-samsung-soc@vger.kernel.org" Subject: [PATCH v3] clk: s3c2410: removed unneeded variable in s3c24xx_clkout_set_parent Thread-Topic: [PATCH v3] clk: s3c2410: removed unneeded variable in s3c24xx_clkout_set_parent Thread-Index: AQHRK1TW0zoqhDL8ZkCPOvqzUQP0iQ== Date: Mon, 30 Nov 2015 09:52:35 +0000 Message-ID: <20151130095109.GA28767@jci-VirtualBox> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=mkarthi3@visteon.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [91.212.132.114] x-microsoft-exchange-diagnostics: 1; AM3PR06MB0904; 5:iclS7iCq2xqp9hbqk1Z6TXvLKKeQ/cvdZEscJorVLyv1F1CkZ2cUNhCWwrPh3iq9GIlUxU6ylAomJOX0Q+bACRZhtCK21JBFaGc/bhOJnwadhAX1Wpz6dLq4QFVS9dyRFQhi/a2nia51lS8zrJFFww==; 24:+T++RMNNpmbp3Aj1HN5F7yTyhbyKVrOflrUqSkjOxDZJXgpwHCP70fjmCVMhgFwY3zYtfeVaJvawAAYisy8tw0Mx2fz4fqqOXlaZlfCovuY= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB0904; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(208512329853888); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001); SRVR:AM3PR06MB0904; BCL:0; PCL:0; RULEID:; SRVR:AM3PR06MB0904; x-forefront-prvs: 0776C39A48 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(54534003)(2900100001)(66066001)(3846002)(86362001)(102836003)(33716001)(33656002)(11100500001)(586003)(92566002)(1076002)(6116002)(19580395003)(50986999)(19580405001)(5008740100001)(10400500002)(1220700001)(5002640100001)(77096005)(122556002)(229853001)(5001770100001)(87936001)(101416001)(97736004)(2860100001)(40100003)(106116001)(1096002)(105586002)(81156007)(5004730100002)(189998001)(106356001)(54356999)(5001960100002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR06MB0904; H:AM3PR06MB0902.eurprd06.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: visteon.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-ID: MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2015 09:52:35.1251 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR06MB0904 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 Remove unneeded variable used to store return value. Signed-off-by: Prasanna Karthik --- v3: Modified subject and changelog comments --- --- drivers/clk/samsung/clk-s3c2410-dclk.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-s3c2410-dclk.c b/drivers/clk/samsung/clk-s3c2410-dclk.c index e9eb935..ec6fb14 100644 --- a/drivers/clk/samsung/clk-s3c2410-dclk.c +++ b/drivers/clk/samsung/clk-s3c2410-dclk.c @@ -77,12 +77,11 @@ static u8 s3c24xx_clkout_get_parent(struct clk_hw *hw) static int s3c24xx_clkout_set_parent(struct clk_hw *hw, u8 index) { struct s3c24xx_clkout *clkout = to_s3c24xx_clkout(hw); - int ret = 0; s3c2410_modify_misccr((clkout->mask << clkout->shift), (index << clkout->shift)); - return ret; + return 0; } static const struct clk_ops s3c24xx_clkout_ops = {