fix 'defined but not used' warning in net/rxrpc/main.c::rxrpc_initialise
Subsystems (2)
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.
Signed-off-by Jesper Juhl <[email protected]>
---
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_SYSCTLrxrpc_sysctl_cleanup (); -#endif error_proc: +#endif #ifdef CONFIG_PROC_FS rxrpc_proc_cleanup ();#endif