From: Jesper Juhl <jesper.juhl@gmail.com>
To: David Howells <dhowells@redhat.com>
Cc: linux-kernel@vger.kernel.org, Jesper Juhl <jesper.juhl@gmail.com>
Subject: [PATCH] fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise
Date: Sat, 25 Feb 2006 19:31:50 +0100 [thread overview]
Message-ID: <200602251931.50545.jesper.juhl@gmail.com> (raw)
fix a 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise()
net/rxrpc/main.c: In function `rxrpc_initialise':
net/rxrpc/main.c:83: warning: label `error_proc' defined but not used
The only user of the label is inside #ifdef CONFIG_SYSCTL so move the label
inside as well to silence the warning.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
net/rxrpc/main.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.16-rc4-mm2-orig/net/rxrpc/main.c 2006-01-03 04:21:10.000000000 +0100
+++ linux-2.6.16-rc4-mm2/net/rxrpc/main.c 2006-02-25 19:23:39.000000000 +0100
@@ -79,8 +79,8 @@ static int __init rxrpc_initialise(void)
error_sysctl:
#ifdef CONFIG_SYSCTL
rxrpc_sysctl_cleanup();
-#endif
error_proc:
+#endif
#ifdef CONFIG_PROC_FS
rxrpc_proc_cleanup();
#endif
reply other threads:[~2006-02-25 18:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200602251931.50545.jesper.juhl@gmail.com \
--to=jesper.juhl@gmail.com \
--cc=dhowells@redhat.com \
--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;
as well as URLs for NNTP newsgroup(s).