From patchwork Mon Nov 17 10:21:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: wangyijing X-Patchwork-Id: 40883 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CE5F424035 for ; Mon, 17 Nov 2014 09:41:43 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf5919634lbj.4 for ; Mon, 17 Nov 2014 01:41:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=CQ1BpWBqMoEtc1RvzOkBdpY6N12zFvidA+dPlgKqWOs=; b=OMJn4ls7VsjePuUuI3hMlAbs+sLuEpUjymXDpdzz24OyJN0Fr1vMcpUw/LwAv8esiE fgl0vRu/J48oGlLd7Y0bbWR2Ky6shRn9bFp+6V3aikLQ7qJ8bEl0fHXdWVlr1/wD4rFT CADaZPDlcQ4U3LsIBFoDxxU2+e9tyHbRVQXkY/YzecjLfFcrpKznf9VhUKs+3kMf3Lvr 1ogJa2YypI426P4FzCTjppo1pO5CAusBEBZ0zWnWVbafCL87cxgDmetcHO/WzQiuBCj8 ec2nWHTIH7dDVyR/9xdMJf3HDHCXev53nG10S7uFqKW5CCdqnnlnY3Kot8MqSzAdP07Q vhyA== X-Gm-Message-State: ALoCoQkzjoFLh6UdTcLc7inbiGM0iLwhRlabx0ouiQQtI+g99tYvc+SoT51akN0I+G3zkdZcowMh X-Received: by 10.152.6.4 with SMTP id w4mr256149law.7.1416217302815; Mon, 17 Nov 2014 01:41:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.71 with SMTP id t7ls602056lae.11.gmail; Mon, 17 Nov 2014 01:41:42 -0800 (PST) X-Received: by 10.112.199.100 with SMTP id jj4mr9342305lbc.71.1416217302496; Mon, 17 Nov 2014 01:41:42 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id os10si1555484lbb.3.2014.11.17.01.41.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 17 Nov 2014 01:41:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id n15so15839415lbi.18 for ; Mon, 17 Nov 2014 01:41:42 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr8732064lbb.80.1416217302291; Mon, 17 Nov 2014 01:41:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp1127197lbc; Mon, 17 Nov 2014 01:41:41 -0800 (PST) X-Received: by 10.66.124.228 with SMTP id ml4mr28436051pab.42.1416217300629; Mon, 17 Nov 2014 01:41:40 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id fk4si34546690pbb.236.2014.11.17.01.41.38 for ; Mon, 17 Nov 2014 01:41:40 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752176AbaKQJlC (ORCPT + 26 others); Mon, 17 Nov 2014 04:41:02 -0500 Received: from szxga01-in.huawei.com ([119.145.14.64]:43151 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751880AbaKQJkw (ORCPT ); Mon, 17 Nov 2014 04:40:52 -0500 Received: from 172.24.2.119 (EHLO szxeml462-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CEO10150; Mon, 17 Nov 2014 17:40:46 +0800 (CST) Received: from localhost.localdomain (10.175.100.166) by szxeml462-hub.china.huawei.com (10.82.67.205) with Microsoft SMTP Server id 14.3.158.1; Mon, 17 Nov 2014 17:40:37 +0800 From: Yijing Wang To: Bjorn Helgaas CC: , , Xinwei Hu , Wuyun , , Russell King , , Thomas Gleixner , Benjamin Herrenschmidt , , Tony Luck , , Thierry Reding , Liviu Dudau , , Yijing Wang Subject: [RFC PATCH 12/16] ia64/PCI: Remove the redundant bus variable Date: Mon, 17 Nov 2014 18:21:46 +0800 Message-ID: <1416219710-26088-13-git-send-email-wangyijing@huawei.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1416219710-26088-1-git-send-email-wangyijing@huawei.com> References: <1416219710-26088-1-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.175.100.166] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: wangyijing@huawei.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Signed-off-by: Yijing Wang --- arch/ia64/pci/pci.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 291a582..aac3220 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -424,7 +424,6 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) { struct acpi_device *device = root->device; int domain = root->segment; - int bus = root->secondary.start; struct pci_controller *controller; struct pci_root_info *info = NULL; int busnum = root->secondary.start; @@ -465,7 +464,7 @@ struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root) * should handle the case here, but it appears that IA64 hasn't * such quirk. So we just ignore the case now. */ - pbus = pci_create_root_bus(NULL, bus, &pci_root_ops, controller, + pbus = pci_create_root_bus(NULL, busnum, &pci_root_ops, controller, &info->resources); if (!pbus) { pci_free_resource_list(&info->resources);