summaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/rpaphp_pci.c
diff options
context:
space:
mode:
authorLinas Vepstas2007-04-14 00:34:19 +0200
committerGreg Kroah-Hartman2007-05-03 04:02:40 +0200
commit6f79eb749df7f1eea76c947f31603ade7d2b5f6d (patch)
tree05739883d619b6fc0a45d3988f65775327bb80c2 /drivers/pci/hotplug/rpaphp_pci.c
parentPCI: rpaphp: remove rpaphp_set_attention_status() (diff)
downloadkernel-qcow2-linux-6f79eb749df7f1eea76c947f31603ade7d2b5f6d.tar.gz
kernel-qcow2-linux-6f79eb749df7f1eea76c947f31603ade7d2b5f6d.tar.xz
kernel-qcow2-linux-6f79eb749df7f1eea76c947f31603ade7d2b5f6d.zip
PCI: rpaphp: refactor tail call to rpaphp_register_slot()
Eliminate the tail call to rpaphp_register_slot() by placing it in the caller. This will help later dis-entanglement. 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>
Diffstat (limited to 'drivers/pci/hotplug/rpaphp_pci.c')
-rw-r--r--drivers/pci/hotplug/rpaphp_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/rpaphp_pci.c b/drivers/pci/hotplug/rpaphp_pci.c
index 6271be8b155e..2e297b9ffa75 100644
--- a/drivers/pci/hotplug/rpaphp_pci.c
+++ b/drivers/pci/hotplug/rpaphp_pci.c
@@ -136,6 +136,6 @@ int rpaphp_register_pci_slot(struct slot *slot)
}
}
- return rpaphp_register_slot(slot);
+ return 0;
}