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)
list_del(&slot->slot_list);
pci_hp_deregister(slot->hotplug_slot);
}
return;
}
......@@ -409,11 +407,7 @@ static int __init acpiphp_init(void)
if (retval)
return retval;
retval = init_slots();
if (retval)
return retval;
return 0;
return init_slots();
}
......
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