diff options
author | Gavin Shan <gwshan@linux.vnet.ibm.com> | 2017-01-10 20:09:05 -0500 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2017-02-17 06:18:43 -0500 |
commit | 02983449c87b1dfd9b75af4c8a2a8057f9664c08 (patch) | |
tree | 721f7c6c674fd633a97c8d6dc0e6ed83c0603ff0 | |
parent | 727597d12140b342a3deef10348b5edeb076275d (diff) |
powerpc/powernv: Remove unused variable in pnv_pci_sriov_disable()
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>
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index 8278f43ad4b8..06c91705562e 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c | |||
@@ -1468,14 +1468,12 @@ void pnv_pci_sriov_disable(struct pci_dev *pdev) | |||
1468 | struct pnv_phb *phb; | 1468 | struct pnv_phb *phb; |
1469 | struct pnv_ioda_pe *pe; | 1469 | struct pnv_ioda_pe *pe; |
1470 | struct pci_dn *pdn; | 1470 | struct pci_dn *pdn; |
1471 | struct pci_sriov *iov; | ||
1472 | u16 num_vfs, i; | 1471 | u16 num_vfs, i; |
1473 | 1472 | ||
1474 | bus = pdev->bus; | 1473 | bus = pdev->bus; |
1475 | hose = pci_bus_to_host(bus); | 1474 | hose = pci_bus_to_host(bus); |
1476 | phb = hose->private_data; | 1475 | phb = hose->private_data; |
1477 | pdn = pci_get_pdn(pdev); | 1476 | pdn = pci_get_pdn(pdev); |
1478 | iov = pdev->sriov; | ||
1479 | num_vfs = pdn->num_vfs; | 1477 | num_vfs = pdn->num_vfs; |
1480 | 1478 | ||
1481 | /* Release VF PEs */ | 1479 | /* Release VF PEs */ |