diff mbox

[3/5] pci:bus.c Fix variable 'retval' set but not used

Message ID 1276666434-11227-4-git-send-email-justinmattock@gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Justin P. Mattock June 16, 2010, 5:33 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index 628ea20..84bdb48 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -234,12 +234,10 @@  void pci_bus_add_devices(const struct pci_bus *bus)
 void pci_enable_bridges(struct pci_bus *bus)
 {
 	struct pci_dev *dev;
-	int retval;
 
 	list_for_each_entry(dev, &bus->devices, bus_list) {
 		if (dev->subordinate) {
 			if (!pci_is_enabled(dev)) {
-				retval = pci_enable_device(dev);
 				pci_set_master(dev);
 			}
 			pci_enable_bridges(dev->subordinate);