[PATCH] RPA PCI Hotplug - redundant free

From: John Rose
Date: Wed Mar 31 2004 - 15:40:04 EST

Hi Greg-

Apologies for the resend, messed up the lkml address. Please commit the
following patch, which removes a redundant call to a
cleanup function from an error path of the module init code.


diff -Nru a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c
--- a/drivers/pci/hotplug/rpaphp_pci.c Tue Mar 30 18:50:32 2004
+++ b/drivers/pci/hotplug/rpaphp_pci.c Tue Mar 30 18:50:32 2004
@@ -304,7 +304,6 @@
if (slot->hotplug_slot->info->adapter_status == NOT_VALID) {
dbg("%s: NOT_VALID: skip dn->full_name=%s\n",
__FUNCTION__, slot->dn->full_name);
- dealloc_slot_struct(slot);
return (-1);
return (0);

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/