From patchwork Thu Jan 12 02:17:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaehoon Chung X-Patchwork-Id: 9511783 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 3F68860710 for ; Thu, 12 Jan 2017 02:18:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 315FB2868C for ; Thu, 12 Jan 2017 02:18:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 261C5286A7; Thu, 12 Jan 2017 02:18:14 +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=ham 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 3F1002868C for ; Thu, 12 Jan 2017 02:18:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935332AbdALCSK (ORCPT ); Wed, 11 Jan 2017 21:18:10 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:38961 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752363AbdALCR2 (ORCPT ); Wed, 11 Jan 2017 21:17:28 -0500 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OJN00CTGACY1CC0@mailout1.samsung.com>; Thu, 12 Jan 2017 11:17:22 +0900 (KST) Received: from epsmges5p4.samsung.com (unknown [182.195.40.66]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170112021722epcas1p3c569f1c3a93dc68fa680b0ac44ff3dc2~Y5J18mj9A0085400854epcas1p3Q; Thu, 12 Jan 2017 02:17:22 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p4.samsung.com (EPCPMTA) with SMTP id 2B.19.22880.237E6785; Thu, 12 Jan 2017 11:17:22 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170112021721epcas5p4a68623b842f9233c7303deb8cd3b3ee2~Y5J1rqnCf0175801758epcas5p4Q; Thu, 12 Jan 2017 02:17:21 +0000 (GMT) X-AuditID: b6c32a58-f79946d000005960-61-5876e73247cc Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 72.C5.26370.137E6785; Thu, 12 Jan 2017 11:17:21 +0900 (KST) Received: from localhost.localdomain ([10.113.62.216]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OJN00EIWACXY0B0@mmp1.samsung.com>; Thu, 12 Jan 2017 11:17:21 +0900 (KST) From: Jaehoon Chung To: linux-pci@vger.kernel.org Cc: helgaas@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 V2 2/4] PCI: exynos: Remove the unnecessary variables Date: Thu, 12 Jan 2017 11:17:17 +0900 Message-id: <20170112021719.24986-2-jh80.chung@samsung.com> X-Mailer: git-send-email 2.10.2 In-reply-to: <20170112021719.24986-1-jh80.chung@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7bCmhq7R87IIgy9XeS1eHtK0mPV8D6vF m7drmCxu/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aL N2/XMFnc+NXGarHiy0x2i/7Hr5ktzp/fwG5xedccNouz846zWcw4v4/Jgctj56y77B4LNpV6 bFrVyeaxpR/I69uyitHj8ya5ALYoN5uM1MSU1CKF1Lzk/JTMvHRbpdAQN10LJYW8xNxUW6UI Xd+QICWFssScUiDPyAANODgHuAcr6dsluGX0PHvGVHBEoGLd29NMDYw/ebsYOTkkBEwk/m38 wAphi0lcuLeeDcQWEljKKLFws0EXIxeQ/YNR4vqPfewgCTYBHYnt344zgdgiArISHy/vAWtg FnjBKPF5mSSILSzgKrFg2wewehYBVYkJX+cygti8AtYSNzYehlomL7Hw/BGwOZwCNhLr1mxl gVhsLXFy0VnWCYy8CxgZVjFKpBYkFxQnpeca5aWW6xUn5haX5qXrJefnbmIEh/0z6R2Mh3e5 H2IU4GBU4uFlOF4WIcSaWFZcmXuIUYKDWUmEV/cJUIg3JbGyKrUoP76oNCe1+BCjKdBhE5ml RJPzgTGZVxJvaGJuYm5sYGFuaWlipCTO2zj7WbiQQHpiSWp2ampBahFMHxMHp1QDI+Mj+/bX s7ak68/1zvH+Ur410Fza+PcK4SLT2xWtyTIrO97fflg3PSjZKYzz+7Rz/VJiVcEJG88Y1q2x +3d8ZdBKnUSrC+ua9+2XF/K9Gzpbq1V7wbdVLav+Lio+derClTb34vWvlz7rjJr58vcJm4Ub ndna0nbsWOauwn/yn9wujUzjG29PRyqxFGckGmoxFxUnAgDJ2bt6kQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170112021721epcas5p4a68623b842f9233c7303deb8cd3b3ee2 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: 20170112021721epcas5p4a68623b842f9233c7303deb8cd3b3ee2 X-RootMTR: 20170112021721epcas5p4a68623b842f9233c7303deb8cd3b3ee2 References: <20170112021719.24986-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 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 92856cd..3a7e09b 100644 --- a/drivers/pci/host/pci-exynos.c +++ b/drivers/pci/host/pci-exynos.c @@ -509,9 +509,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); @@ -542,22 +540,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;