Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 738e6860 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras
Browse files

hotplug/rpaphp: Remove unused error path code



Commit f46753c5 ("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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b950bdd0
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -147,9 +147,5 @@ int rpaphp_register_slot(struct slot *slot)
	list_add(&slot->rpaphp_slot_list, &rpaphp_slot_head);
	info("Slot [%s] registered\n", slot->name);
	return 0;

sysfs_fail:
	pci_hp_deregister(php_slot);
	return retval;
}