From patchwork Mon Nov 30 10:08:46 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: 7722761 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 C55EDBEEE1 for ; Mon, 30 Nov 2015 10:08:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03D5D204EA for ; Mon, 30 Nov 2015 10:08:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25DFB204FB for ; Mon, 30 Nov 2015 10:08:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753334AbbK3KIu (ORCPT ); Mon, 30 Nov 2015 05:08:50 -0500 Received: from mail-db3on0131.outbound.protection.outlook.com ([157.55.234.131]:3185 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753225AbbK3KIt convert rfc822-to-8bit (ORCPT ); Mon, 30 Nov 2015 05:08:49 -0500 Received: from AM3PR06MB0902.eurprd06.prod.outlook.com (10.161.34.19) by AM3PR06MB0903.eurprd06.prod.outlook.com (10.161.34.20) with Microsoft SMTP Server (TLS) id 15.1.331.20; Mon, 30 Nov 2015 10:08:47 +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 10:08:46 +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: AQHRK1cZhK4RSGsZFUWxDoCEu8luOQ== Date: Mon, 30 Nov 2015 10:08:46 +0000 Message-ID: <20151130100720.GA29096@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; AM3PR06MB0903; 5:z7d13WA07cVnMyH4RY3fsB5paOIPH3NMoYoQlnFdN3SD1F7phe1sodjbjI+9owv6UK1dy8oOSLjg9A2zwE5pB+NsNm1fMxIsyqQPsPo3gZYh+UTkAAZ/Ou75WQYEUoLbWumPTr6CUdaH/JuHngbwrA==; 24:teYhNrc9hZdpBt46q+o80owcCdjqaT905u/llnMCUtX9DCZ/fQDBgOvxeio2JuE4WHnyiWBJeK0G+zHxaTdvzdHHejGhk3SVkl9Lmc83p6E= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM3PR06MB0903; 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:AM3PR06MB0903; BCL:0; PCL:0; RULEID:; SRVR:AM3PR06MB0903; x-forefront-prvs: 0776C39A48 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(199003)(189002)(54534003)(33716001)(97736004)(5002640100001)(50986999)(92566002)(5001960100002)(5008740100001)(105586002)(54356999)(106116001)(101416001)(81156007)(1076002)(229853001)(2900100001)(66066001)(106356001)(33656002)(2860100001)(5001770100001)(189998001)(86362001)(122556002)(19580395003)(40100003)(5004730100002)(10400500002)(1220700001)(87936001)(1096002)(3846002)(19580405001)(102836003)(77096005)(6116002)(586003); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR06MB0903; 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 10:08:46.5795 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7a147aaf-01ec-498c-80a1-e34a8c63c548 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR06MB0903 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. Signed-off-by: Prasanna Karthik Reviewed-by: Krzysztof Kozlowski --- 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 = {