Skip to contentSkip to conversation

fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise

PATCH New Jesper Juhl 1 participant 1 message Feb 25, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise

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.

---

 net/rxrpc/main.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
net/rxrpc/main.c +1 -1
@@ -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