ChangeSet 1.1500.11.12, 2004/02/03 16:48:38-08:00, eike-hotplug@sf-tec.de [PATCH] PCI: avoid two returns directly after each other in pcidriver.c This avoids a return direct before the final return of a function. Better only modify the return code and fall through to the final return. drivers/pci/pci-driver.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c --- a/drivers/pci/pci-driver.c Mon Feb 9 14:59:00 2004 +++ b/drivers/pci/pci-driver.c Mon Feb 9 14:59:00 2004 @@ -241,7 +241,7 @@ error = drv->probe(pci_dev, id); if (error >= 0) { pci_dev->driver = drv; - return 0; + error = 0; } return error; }