Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp5061314pjb; Mon, 27 Jul 2020 11:55:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3XI42qv3uhdI983W0C7+kEaYqMjdGysFBgF0npM9hwweVCCEBdUuPrid5TOCX7dWjxYSF X-Received: by 2002:a17:906:69d3:: with SMTP id g19mr23275930ejs.402.1595876144816; Mon, 27 Jul 2020 11:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595876144; cv=none; d=google.com; s=arc-20160816; b=oUdCtTgGm0RFtis7tFLtIu19M5QweyEbSeT7ldep8lHaQFaxvtq4e7G6k9obpLBWdw 753b202M+QH/9SF6q5nUGpjxiKC6EWuBHE/nd9zlP51HZ2Ib2y2JcSHKeFKfPvDwl2K9 fAuDyTG76AnpMbUGEIubP2mrR9Y5rz6vDZJV21kR28ern/DqOVSTVA+4TtBpm+EMw3+1 CqzNjumaNMCRKE+qWHCJmNiGGhrtOUYLvAhxTdLbREf5QxENHOlaw9+9huCno9o07sX7 FJgZxzCHKysGmtU0fUGbMluHfttYIt6fnxa3zdFgNnnVFKuTlpbmh+6aecCruCt7yhUA 4tWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/2IvNm2DqMG5r0P4cZrXbZ2P7WQZbswpSGD3cJm6KiI=; b=qLXUIiktusXZ3quyjrWP7/Au4vfawa9Lij9fvAKLrqoSH+2ybDwAWcG3FTaW143fHb /Sgnhiiju6hYlYf08gVKM9n+d6wzmu41+VUsVqRuYZAmP2JmODfW9cTybQB8At91ljHd SCnilIqyyi27fB0kOrGPsyQEaqSf6IFYCrgVHNjNj624NxL1kTApm4nGZ/WuJEJSBg/2 vtCMkx9vxlcGkhcP2pMvhezvHuo2F56ochzWvtwKxhcX4NmKnuf7xnEEDwo9zD1wGswY I16AUKVF3uvlzFMfGM+kajlc4TRnSYPUkF9GBYmY5uBS8JfKpFnK4AQ2DSLBvT4SWStn 0/sg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k16si6242585edv.238.2020.07.27.11.55.22; Mon, 27 Jul 2020 11:55:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728495AbgG0RBh (ORCPT + 99 others); Mon, 27 Jul 2020 13:01:37 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:34328 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726979AbgG0RBh (ORCPT ); Mon, 27 Jul 2020 13:01:37 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 30A38974B87AF2C0C6FF; Tue, 28 Jul 2020 01:01:32 +0800 (CST) Received: from kernelci-master.huawei.com (10.175.101.6) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Tue, 28 Jul 2020 01:01:21 +0800 From: Wei Yongjun To: Hulk Robot , Michael Ellerman , Oliver O'Halloran , Alexey Kardashevskiy CC: Wei Yongjun , , Subject: [PATCH -next] powerpc/powernv/sriov: Remove unused but set variable 'phb' Date: Tue, 28 Jul 2020 01:11:12 +0800 Message-ID: <20200727171112.2781-1-weiyongjun1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.175.101.6] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gcc report warning as follows: arch/powerpc/platforms/powernv/pci-sriov.c:602:25: warning: variable 'phb' set but not used [-Wunused-but-set-variable] 602 | struct pnv_phb *phb; | ^~~ This variable is not used, so this commit removing it. Reported-by: Hulk Robot Signed-off-by: Wei Yongjun --- arch/powerpc/platforms/powernv/pci-sriov.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/pci-sriov.c b/arch/powerpc/platforms/powernv/pci-sriov.c index 8404d8c3901d..7894745fd4f8 100644 --- a/arch/powerpc/platforms/powernv/pci-sriov.c +++ b/arch/powerpc/platforms/powernv/pci-sriov.c @@ -599,10 +599,8 @@ static int pnv_pci_vf_resource_shift(struct pci_dev *dev, int offset) static void pnv_pci_sriov_disable(struct pci_dev *pdev) { u16 num_vfs, base_pe; - struct pnv_phb *phb; struct pnv_iov_data *iov; - phb = pci_bus_to_pnvhb(pdev->bus); iov = pnv_iov_get(pdev); num_vfs = iov->num_vfs; base_pe = iov->vf_pe_arr[0].pe_number;