From fcc7a8c4636ec9d14680126e9fde39e8411c44ea Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Tue, 3 Oct 2006 01:13:53 -0700 Subject: [PATCH] drivers/char/ip2: kill unused code, label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Kill warning: drivers/char/ip2/ip2main.c: In function ‘ip2_loadmain’: drivers/char/ip2/ip2main.c:782: warning: label ‘out_class’ defined but not used This driver's initialization (and cleanup of errors during init) is extremely convoluted, and could stand to be transformed into the standard unwinding-goto style of error cleanup. Signed-off-by: Jeff Garzik Acked-by: Michael H. Warfield Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/char/ip2/ip2main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'drivers/char/ip2/ip2main.c') diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c index 4828bc914ce..62ef511d143 100644 --- a/drivers/char/ip2/ip2main.c +++ b/drivers/char/ip2/ip2main.c @@ -779,8 +779,6 @@ retry: ip2trace (ITRC_NO_PORT, ITRC_INIT, ITRC_RETURN, 0 ); goto out; -out_class: - class_destroy(ip2_class); out_chrdev: unregister_chrdev(IP2_IPL_MAJOR, "ip2"); out: -- cgit v1.2.3-70-g09d2