From patchwork Mon Nov 30 07:28:58 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: 7721581 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 56FF9BEEE1 for ; Mon, 30 Nov 2015 07:29:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 884DA2067A for ; Mon, 30 Nov 2015 07:29:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AE1C620660 for ; Mon, 30 Nov 2015 07:29:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752468AbbK3H3C (ORCPT ); Mon, 30 Nov 2015 02:29:02 -0500 Received: from mail-db3on0145.outbound.protection.outlook.com ([157.55.234.145]:7536 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752176AbbK3H3B convert rfc822-to-8bit (ORCPT ); Mon, 30 Nov 2015 02:29:01 -0500 X-Greylist: delayed 1670 seconds by postgrey-1.27 at vger.kernel.org; Mon, 30 Nov 2015 02:29:00 EST 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 07:28:58 +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:28:58 +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 v2] clk: s3c2410: removed unneeded variable in s3c24xx_clkout_set_parent Thread-Topic: [PATCH v2] clk: s3c2410: removed unneeded variable in s3c24xx_clkout_set_parent Thread-Index: AQHRK0DG59Esu5pVTUW//pbMSG+FCw== Date: Mon, 30 Nov 2015 07:28:58 +0000 Message-ID: <20151130072852.GA25202@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: [74.112.164.114] x-microsoft-exchange-diagnostics: 1; AM3PR06MB0903; 5:k9V+op1zxTrXfiRAdSyvmsVXgUKjw1zafVdfB51cGNtG57DkrHp1rtzo2UgMpo7v1FxOClYYy+bh5EhNk65PLsVlvgVcM8+aQXuVzmBqEIybLcWoCuTi59gG6hx5JHk8s8zqp7O6qhsNyHIZ4Efrhw==; 24:GQIiwhI7+Ot9gpA9InKNLa5rxRNYcPJYuO7lUQa1rkETzQ5qZnZRuYAyyAJWCmfwNoq+XAgA9qTTKfHsWvBZwcGe51lSkYIHqD/cs7Hhmss= 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)(33716001)(97736004)(5002640100001)(92566002)(50986999)(5001960100002)(5008740100001)(105586002)(54356999)(106116001)(66066001)(81156007)(101416001)(229853001)(2900100001)(1076002)(33656002)(106356001)(2860100001)(5001770100001)(189998001)(86362001)(11100500001)(40100003)(19580395003)(5004730100002)(10400500002)(1220700001)(122556002)(87936001)(1096002)(19580405001)(3846002)(77096005)(102836003)(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: <488651B7B43D9248930103020336C47A@eurprd06.prod.outlook.com> MIME-Version: 1.0 X-OriginatorOrg: visteon.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2015 07:28:58.1893 (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. V2: Modified subject 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 = {