Commit bb42a614 authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Deepak Saxena

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

Fix 2 very ugly return constructs.
parent c81770f8
...@@ -391,8 +391,6 @@ static void __exit cleanup_slots (void) ...@@ -391,8 +391,6 @@ static void __exit cleanup_slots (void)
list_del(&slot->slot_list); list_del(&slot->slot_list);
pci_hp_deregister(slot->hotplug_slot); pci_hp_deregister(slot->hotplug_slot);
} }
return;
} }
...@@ -409,11 +407,7 @@ static int __init acpiphp_init(void) ...@@ -409,11 +407,7 @@ static int __init acpiphp_init(void)
if (retval) if (retval)
return retval; return retval;
retval = init_slots(); return init_slots();
if (retval)
return retval;
return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment