hotplug/rpaphp: Remove unused error path code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Wednesday, October 15, 2008 - 11:59 am

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=738e68...
Commit:     738e686055332a11884081ea85514514cb12fa20
Parent:     b950bdd0fc247d0ab4aea88d46e8cced3eac949e
Author:     Stephen Rothwell <sfr@canb.auug.org.au>
AuthorDate: Tue Aug 19 11:45:55 2008 +1000
Committer:  Paul Mackerras <paulus@samba.org>
CommitDate: Wed Aug 20 16:34:58 2008 +1000

    hotplug/rpaphp: Remove unused error path code
    
    Commit f46753c5e354b857b20ab8e0fe7b2579831dc369 ("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 <sfr@canb.auug.org.au>
    Signed-off-by: Paul Mackerras <paulus@samba.org>
---
 drivers/pci/hotplug/rpaphp_slot.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/pci/hotplug/rpaphp_slot.c b/drivers/pci/hotplug/rpaphp_slot.c
index 9b714ea..5088450 100644
--- a/drivers/pci/hotplug/rpaphp_slot.c
+++ b/drivers/pci/hotplug/rpaphp_slot.c
@@ -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;
 }
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
hotplug/rpaphp: Remove unused error path code, Linux Kernel Mailing ..., (Wed Oct 15, 11:59 am)