Re: [PATCH] PCI Update for 2.6.3-rc1

From: Greg KH
Date: Mon Feb 09 2004 - 19:35:32 EST


ChangeSet 1.1500.11.12, 2004/02/03 16:48:38-08:00, eike-hotplug@xxxxxxxxx

[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;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/