linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise
@ 2006-02-25 18:31 Jesper Juhl
  0 siblings, 0 replies; only message in thread
From: Jesper Juhl @ 2006-02-25 18:31 UTC (permalink / raw)
  To: David Howells; +Cc: linux-kernel, Jesper Juhl


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-02-25 18:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-25 18:31 [PATCH] fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise Jesper Juhl

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).