From: "Michael H. Warfield" <mhw@WittsEnd.com>
To: Jeff Garzik <jeff@garzik.org>
Cc: mhw@WittsEnd.com, Andrew Morton <akpm@osdl.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] drivers/char/ip2: kill unused code, label
Date: Sun, 01 Oct 2006 20:57:07 -0400 [thread overview]
Message-ID: <1159750627.24836.1.camel@canyon.wittsend.com> (raw)
In-Reply-To: <20061001153753.GA5388@havoc.gtf.org>
[-- Attachment #1: Type: text/plain, Size: 1298 bytes --]
On Sun, 2006-10-01 at 11:37 -0400, Jeff Garzik wrote:
> 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>
Looks good to me. I'll look into the unwinding suggestion.
Signed-off-by: Michael H. Warfield <mhw@wittsend.com>
> diff --git a/drivers/char/ip2/ip2main.c b/drivers/char/ip2/ip2main.c
> index 331f447..bcf6573 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:
--
Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw@WittsEnd.com
/\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 307 bytes --]
prev parent reply other threads:[~2006-10-02 0:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-01 15:37 Jeff Garzik
2006-10-02 0:57 ` Michael H. Warfield [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1159750627.24836.1.camel@canyon.wittsend.com \
--to=mhw@wittsend.com \
--cc=akpm@osdl.org \
--cc=jeff@garzik.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®