mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
PCI: rpaphp: Remove un-needed goto
Remove un-needed goto. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Cc: John Rose <johnrose@austin.ibm.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
5fd39c35a0
commit
3499f0726e
1 changed files with 2 additions and 4 deletions
|
@ -157,14 +157,13 @@ int rpaphp_register_slot(struct slot *slot)
|
|||
/* should not try to register the same slot twice */
|
||||
if (is_registered(slot)) {
|
||||
err("rpaphp_register_slot: slot[%s] is already registered\n", slot->name);
|
||||
retval = -EAGAIN;
|
||||
goto register_fail;
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
retval = pci_hp_register(php_slot);
|
||||
if (retval) {
|
||||
err("pci_hp_register failed with error %d\n", retval);
|
||||
goto register_fail;
|
||||
return retval;
|
||||
}
|
||||
|
||||
/* create "phy_location" file */
|
||||
|
@ -182,7 +181,6 @@ int rpaphp_register_slot(struct slot *slot)
|
|||
|
||||
sysfs_fail:
|
||||
pci_hp_deregister(php_slot);
|
||||
register_fail:
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue