From patchwork Mon Nov 30 07:52:22 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: 7721911 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 17F8C9F387 for ; Mon, 30 Nov 2015 07:52:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 362F320680 for ; Mon, 30 Nov 2015 07:52:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5DDA42067D for ; Mon, 30 Nov 2015 07:52:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752598AbbK3Hw2 (ORCPT ); Mon, 30 Nov 2015 02:52:28 -0500 Received: from mail-am1on0141.outbound.protection.outlook.com ([157.56.112.141]:11670 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752518AbbK3Hw1 convert rfc822-to-8bit (ORCPT ); Mon, 30 Nov 2015 02:52:27 -0500 X-Greylist: delayed 2183 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Nov 2015 02:52:27 EST 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 07:52:23 +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 07:52:23 +0000 From: "Mutharaju, Prasanna (P.)" To: Kukjin Kim , Krzysztof Kozlowski , Sylwester Nawrocki , Tomasz Figa , Michael Turquette , Stephen Boyd CC: "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: AQHRK0QLNINQhol3y0+lEviHxzvW/g== Date: Mon, 30 Nov 2015 07:52:22 +0000 Message-ID: <20151130075219.GA27737@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:RxQik5bqaJ7Ie6Dgutt8rrBFN7MHjv3uExhyvfHHlhkT8J841k8Hd/7dWBZeXTj4x2ulm5FuF62ZwUY8dWwHgDe/G0pQ2iRvqiBdxc4PVij8eNawo4wa10wLoMnlKXdYreee4gkdJAiVKpuPDsg9bg==; 24:B6Ic7tMxgQMsUIc6ac/2DRi3aBf+AmJcyA8mqo3e4toPh0tyoC26xpwPB+1P210YPMGHsEWH6cmKEF66nDIjvnEWEm2CqKr7hXCDLk0XLTA= 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)(11100500001)(33656002)(586003)(92566002)(1076002)(6116002)(19580395003)(50986999)(19580405001)(5008740100001)(10400500002)(1220700001)(5002640100001)(77096005)(122556002)(229853001)(5001770100001)(87936001)(101416001)(97736004)(2860100001)(40100003)(106116001)(1096002)(81156007)(105586002)(5004730100002)(106356001)(54356999)(189998001)(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: <7FFF97F83E698945B1CD4A4112EC2C88@eurprd06.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2015 07:52:22.8984 (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=ham 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 From: Prasanna Karthik Remove unneeded variable used to store return value. --- v3: Modified subject and changelog comments --- Signed-off-by: Prasanna Karthik --- 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 = {