lkml.org 
[lkml]   [2006]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise
Date

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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-25 19:34    [W:0.017 / U:0.596 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site