Two definitions of 'dev' in same function drivers/pci/remove.c:120:19: warning: symbol 'dev' shadows an earlier one drivers/pci/remove.c:114:46: originally declared here Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx> --- a/drivers/pci/remove.c 2008-09-08 09:15:40.000000000 -0700 +++ b/drivers/pci/remove.c 2008-09-08 09:16:59.000000000 -0700 @@ -115,13 +115,9 @@ void pci_remove_behind_bridge(struct pci { struct list_head *l, *n; - if (dev->subordinate) { - list_for_each_safe(l, n, &dev->subordinate->devices) { - struct pci_dev *dev = pci_dev_b(l); - - pci_remove_bus_device(dev); - } - } + if (dev->subordinate) + list_for_each_safe(l, n, &dev->subordinate->devices) + pci_remove_bus_device(pci_dev_b(l)); } static void pci_stop_bus_devices(struct pci_bus *bus) -- -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html