mirror of
				https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
				synced 2025-10-30 22:47:06 +10:00 
			
		
		
		
	sctp: fix unused lable warning
The proc file cleanup left a label possibly unused:
net/sctp/protocol.c: In function 'sctp_defaults_init':
net/sctp/protocol.c:1304:1: error: label 'err_init_proc' defined but not used [-Werror=unused-label]
This adds an #ifdef around it to match the respective 'goto'.
Fixes: d47d08c8ca ("sctp: use proc_remove_subtree()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
			
			
This commit is contained in:
		
							parent
							
								
									75498aa1af
								
							
						
					
					
						commit
						7ae665f132
					
				| @ -1258,8 +1258,10 @@ static int __net_init sctp_defaults_init(struct net *net) | ||||
| 
 | ||||
| 	return 0; | ||||
| 
 | ||||
| #ifdef CONFIG_PROC_FS | ||||
| err_init_proc: | ||||
| 	cleanup_sctp_mibs(net); | ||||
| #endif | ||||
| err_init_mibs: | ||||
| 	sctp_sysctl_net_unregister(net); | ||||
| err_sysctl_register: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user