ChangeSet 1.1587.12.11, 2004/04/29 14:25:28-07:00, eike-hotplug@sf-tec.de

[PATCH] PCI Hotplug: Clean up acpiphp_core.c: return

Fix 2 very ugly return constructs.


 drivers/pci/hotplug/acpiphp_core.c |    8 +-------
 1 files changed, 1 insertion(+), 7 deletions(-)


diff -Nru a/drivers/pci/hotplug/acpiphp_core.c b/drivers/pci/hotplug/acpiphp_core.c
--- a/drivers/pci/hotplug/acpiphp_core.c	Mon May 17 17:07:23 2004
+++ b/drivers/pci/hotplug/acpiphp_core.c	Mon May 17 17:07:23 2004
@@ -391,8 +391,6 @@
 		list_del(&slot->slot_list);
 		pci_hp_deregister(slot->hotplug_slot);
 	}
-
-	return;
 }
 
 
@@ -409,11 +407,7 @@
 	if (retval)
 		return retval;
 
-	retval = init_slots();
-	if (retval)
-		return retval;
-
-	return 0;
+	return init_slots();
 }
 
 
