From patchwork Mon Jan 16 06:31:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9518099 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AC11C6020B for ; Mon, 16 Jan 2017 06:32:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61AC328324 for ; Mon, 16 Jan 2017 06:32:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5529E2838C; Mon, 16 Jan 2017 06:32:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC6BD28324 for ; Mon, 16 Jan 2017 06:32:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750980AbdAPGcj (ORCPT ); Mon, 16 Jan 2017 01:32:39 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:42378 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbdAPGbq (ORCPT ); Mon, 16 Jan 2017 01:31:46 -0500 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJV01MA40SUTY10@mailout2.samsung.com>; Mon, 16 Jan 2017 15:31:42 +0900 (KST) Received: from epsmges5p4.samsung.com (unknown [182.195.40.68]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170116063141epcas1p373e15c9f4fc114ebadf3ef8d6339dc04~aLNCjlBvP2509225092epcas1p3K; Mon, 16 Jan 2017 06:31:41 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p4.samsung.com (EPCPMTA) with SMTP id 65.EE.22880.DC86C785; Mon, 16 Jan 2017 15:31:41 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p3.samsung.com (KnoxPortal) with ESMTP id 20170116063141epcas5p329a9496aabe28a9961176539c47065dc~aLNCUIfSN2708627086epcas5p3k; Mon, 16 Jan 2017 06:31:41 +0000 (GMT) X-AuditID: b6c32a58-f79946d000005960-54-587c68cdd2ee Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id BA.55.26370.DC86C785; Mon, 16 Jan 2017 15:31:41 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJV00DGH0SSQ5A0@mmp2.samsung.com>; Mon, 16 Jan 2017 15:31:41 +0900 (KST) From: Jaehoon Chung To: linux-pci@vger.kernel.org Cc: bhelgaas@google.com, krzk@kernel.org, linux-kernel@vger.kernel.org, jingoohan1@gmail.com, javier@osg.samsung.com, kgene@kernel.org, linux-samsung-soc@vger.kernel.org, cpgs@samsung.com, Jaehoon Chung Subject: [PATCH V3 3/5] PCI: exynos: Remove the unnecessary variables Date: Mon, 16 Jan 2017 15:31:36 +0900 Message-id: <20170116063138.25805-4-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20170116063138.25805-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7bCmpu7ZjJoIgxUPdSyWNGVYvDykafHm 7Romixu/2lg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Pgyk92i//FrZovz5zewW1zeNYfN4uy842wWM87vY3Lg8tg56y67x4JNpR6b VnWyeWzpB/L6tqxi9Pi8SS6ALcrNJiM1MSW1SCE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULX NyRISaEsMacUyDMyQAMOzgHuwUr6dgluGafPf2EtuCNQcerhO+YGxh6+LkZODgkBE4mHN+ez Q9hiEhfurWfrYuTiEBKYxSixYuYGZgjnB6PE0skr2ECq2AR0JLZ/O84EYosIyEp8vLwHrINZ 4CWjRMf5DywgCWEBV4ntO2aBjWURUJWYcGYPWJxXwFri2uIZUOvkJRaePwI2iFPARmLygeXM ILYQUM3urvNMExh5FzAyrGKUSC1ILihOSs81ykst1ytOzC0uzUvXS87P3cQIDvxn0jsYD+9y P8QowMGoxMO7YEd1hBBrYllxZe4hRgkOZiUR3okpNRFCvCmJlVWpRfnxRaU5qcWHGE2BDpvI LCWanA+MyrySeEMTcxNzYwMLc0tLEyMlcd7G2c/ChQTSE0tSs1NTC1KLYPqYODilGhilpojI 15jEu51ue1qhz32pjfuuWJHp+Ucr9a3WfUvKc9mU+2bXvFgTdtUdJdxzdvhEtbSe5bt7ainj ZLN/cc/+XY7I0H371IVja/0EEfuIg0Ht7RzfV2hnHVmQuX/nzr/ZltMMg0Vk51gXnl7um7vC PzE+z6Qu2WzJ31Kd/5O9l/QayvdOWKPEUpyRaKjFXFScCAA29IzHkgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170116063141epcas5p329a9496aabe28a9961176539c47065dc X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7KCV7J6s7ZuIG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbUzUo7LGF7J6EKS/ssYXsnoQ=?= X-Global-Sender: =?UTF-8?B?SmFlaG9vbiBDaHVuZxtUaXplbiBQbGF0Zm9ybSBMYWIuG1Nh?= =?UTF-8?B?bXN1bmcgRWxlY3Ryb25pY3MbUzUvU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170116063141epcas5p329a9496aabe28a9961176539c47065dc X-RootMTR: 20170116063141epcas5p329a9496aabe28a9961176539c47065dc References: <20170116063138.25805-1-jh80.chung@samsung.com> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the unnecessary variables(elbi/phy/block_base). It needs one resource structure for assigning each resource. So it replaces with one 'res' variable. Signed-off-by: Jaehoon Chung Reviewed-by: Pankaj Dubey Acked-by: Krzysztof Kozlowski --- Changelog on V3: - None Changelog on V2: - None drivers/pci/host/pci-exynos.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/drivers/pci/host/pci-exynos.c b/drivers/pci/host/pci-exynos.c index 166881a..6255294 100644 --- a/drivers/pci/host/pci-exynos.c +++ b/drivers/pci/host/pci-exynos.c @@ -507,9 +507,7 @@ static int __init exynos_pcie_probe(struct platform_device *pdev) struct exynos_pcie *ep; struct pcie_port *pp; struct device_node *np = dev->of_node; - struct resource *elbi_base; - struct resource *phy_base; - struct resource *block_base; + struct resource *res; int ret; ep = devm_kzalloc(dev, sizeof(*ep), GFP_KERNEL); @@ -540,22 +538,22 @@ static int __init exynos_pcie_probe(struct platform_device *pdev) if (ret) goto fail_clk; - elbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0); - ep->elbi_base = devm_ioremap_resource(dev, elbi_base); + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + ep->elbi_base = devm_ioremap_resource(dev, res); if (IS_ERR(ep->elbi_base)) { ret = PTR_ERR(ep->elbi_base); goto fail_bus_clk; } - phy_base = platform_get_resource(pdev, IORESOURCE_MEM, 1); - ep->phy_base = devm_ioremap_resource(dev, phy_base); + res = platform_get_resource(pdev, IORESOURCE_MEM, 1); + ep->phy_base = devm_ioremap_resource(dev, res); if (IS_ERR(ep->phy_base)) { ret = PTR_ERR(ep->phy_base); goto fail_bus_clk; } - block_base = platform_get_resource(pdev, IORESOURCE_MEM, 2); - ep->block_base = devm_ioremap_resource(dev, block_base); + res = platform_get_resource(pdev, IORESOURCE_MEM, 2); + ep->block_base = devm_ioremap_resource(dev, res); if (IS_ERR(ep->block_base)) { ret = PTR_ERR(ep->block_base); goto fail_bus_clk;