Commit 3499f072 authored by Linas Vepstas's avatar Linas Vepstas Committed by Greg Kroah-Hartman

PCI: rpaphp: Remove un-needed goto

Remove un-needed goto.
Signed-off-by: default avatarLinas Vepstas <linas@austin.ibm.com>
Cc: John Rose <johnrose@austin.ibm.com>
Signed-off-by: default avatarKristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 5fd39c35
...@@ -157,14 +157,13 @@ int rpaphp_register_slot(struct slot *slot) ...@@ -157,14 +157,13 @@ int rpaphp_register_slot(struct slot *slot)
/* should not try to register the same slot twice */ /* should not try to register the same slot twice */
if (is_registered(slot)) { if (is_registered(slot)) {
err("rpaphp_register_slot: slot[%s] is already registered\n", slot->name); err("rpaphp_register_slot: slot[%s] is already registered\n", slot->name);
retval = -EAGAIN; return -EAGAIN;
goto register_fail;
} }
retval = pci_hp_register(php_slot); retval = pci_hp_register(php_slot);
if (retval) { if (retval) {
err("pci_hp_register failed with error %d\n", retval); err("pci_hp_register failed with error %d\n", retval);
goto register_fail; return retval;
} }
/* create "phy_location" file */ /* create "phy_location" file */
...@@ -182,7 +181,6 @@ int rpaphp_register_slot(struct slot *slot) ...@@ -182,7 +181,6 @@ int rpaphp_register_slot(struct slot *slot)
sysfs_fail: sysfs_fail:
pci_hp_deregister(php_slot); pci_hp_deregister(php_slot);
register_fail:
return retval; return retval;
} }
......
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