summaryrefslogtreecommitdiffstats
path: root/drivers/char/ip2
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-10-03 01:13:53 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 08:03:41 -0700
commitfcc7a8c4636ec9d14680126e9fde39e8411c44ea (patch)
treeb2b8ed2a475997ac38a183fa2f36c08f3c422686 /drivers/char/ip2
parent397f4ebf4f317b1d5ecd678a8559a5cb5c6975c3 (diff)
downloadlinux-fcc7a8c4636ec9d14680126e9fde39e8411c44ea.tar.gz
linux-fcc7a8c4636ec9d14680126e9fde39e8411c44ea.tar.bz2
linux-fcc7a8c4636ec9d14680126e9fde39e8411c44ea.zip
[PATCH] drivers/char/ip2: kill unused code, label
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 <jeff@garzik.org> Acked-by: Michael H. Warfield <mhw@wittsend.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/ip2')
-rw-r--r--drivers/char/ip2/ip2main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c
index 4828bc914ce3..62ef511d143b 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: