Skip to contentSkip to conversation

PCI: fix build warning in iov.c

PATCH Applied Yijing Wang 2 participants 2 messages Jan 30, 2013 – Feb 1, 2013 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: fix build warning in iov.c

Delete unused variable rc to fix build warning in driver/pci/iov.c

---
 drivers/pci/iov.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/pci/iov.c +0 -1
index f8720af..4ea7139 100644
@@ -33,7 +33,6 @@ static inline u8 virtfn_devfn(struct pci_dev *dev, int id)
 
 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr)
 {
-	int rc;
 	struct pci_bus *child;
 
 	if (bus->number == busnr)
Signature · 1 line
1.7.1
maintainer Applied
#1 lore raw
Quoted 3 lines · Yijing Wang

Delete unused variable rc to fix build warning in driver/pci/iov.c

Applied to my pci/yinghai-root-bus-hotplug branch for v3.9. Thanks!

Bjorn

Quoted 20 lines
---
 drivers/pci/iov.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/pci/iov.c +0 -2
index f8720af..4ea7139 100644
@@ -33,7 +33,6 @@ static inline u8 virtfn_devfn(struct pci_dev *dev, int id)
 
 static struct pci_bus *virtfn_add_bus(struct pci_bus *bus, int busnr)
 {
-       int rc;
        struct pci_bus *child;
 
        if (bus->number == busnr)
--

1.7.1