powerpc/powernv: Remove unused variable in pnv_pci_sriov_disable()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 11 Jan 2017 01:09:05 +0000 (12:09 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Feb 2017 11:18:43 +0000 (22:18 +1100)
The local variable @iov isn't used, to remove it.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index 8278f43ad4b8f30be7abbf7d7e8c541b9af6f069..06c91705562e8b72dd5b4a8b6c6bf44d86671413 100644 (file)
@@ -1468,14 +1468,12 @@ void pnv_pci_sriov_disable(struct pci_dev *pdev)
        struct pnv_phb        *phb;
        struct pnv_ioda_pe    *pe;
        struct pci_dn         *pdn;
-       struct pci_sriov      *iov;
        u16                    num_vfs, i;
 
        bus = pdev->bus;
        hose = pci_bus_to_host(bus);
        phb = hose->private_data;
        pdn = pci_get_pdn(pdev);
-       iov = pdev->sriov;
        num_vfs = pdn->num_vfs;
 
        /* Release VF PEs */