Skip to content

Commit 738e686

Browse files
sfrothwellpaulusmack
authored andcommitted
hotplug/rpaphp: Remove unused error path code
Commit f46753c ("PCI: introduce pci_slot") removed the need for this error path. Eliminate this warning: drivers/pci/hotplug/rpaphp_slot.c: In function 'rpaphp_register_slot': drivers/pci/hotplug/rpaphp_slot.c:151: warning: label 'sysfs_fail' defined but not used Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
1 parent b950bdd commit 738e686

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/pci/hotplug/rpaphp_slot.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,5 @@ int rpaphp_register_slot(struct slot *slot)
147147
list_add(&slot->rpaphp_slot_list, &rpaphp_slot_head);
148148
info("Slot [%s] registered\n", slot->name);
149149
return 0;
150-
151-
sysfs_fail:
152-
pci_hp_deregister(php_slot);
153-
return retval;
154150
}
155151

0 commit comments

Comments
 (0)