Commit cf1ae052 authored by Wei Yongjun's avatar Wei Yongjun Committed by Michael Ellerman

powerpc/powernv/sriov: Remove unused but set variable 'phb'

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Acked-by: default avatarOliver O'Halloran <oohall@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200727171112.2781-1-weiyongjun1@huawei.com
parent b6ac59d3
...@@ -599,10 +599,8 @@ static int pnv_pci_vf_resource_shift(struct pci_dev *dev, int offset) ...@@ -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) static void pnv_pci_sriov_disable(struct pci_dev *pdev)
{ {
u16 num_vfs, base_pe; u16 num_vfs, base_pe;
struct pnv_phb *phb;
struct pnv_iov_data *iov; struct pnv_iov_data *iov;
phb = pci_bus_to_pnvhb(pdev->bus);
iov = pnv_iov_get(pdev); iov = pnv_iov_get(pdev);
num_vfs = iov->num_vfs; num_vfs = iov->num_vfs;
base_pe = iov->vf_pe_arr[0].pe_number; base_pe = iov->vf_pe_arr[0].pe_number;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment