Re: [PATCH] netfilter: ipvs: avoid unused variable warning

2015-11-30 Thread Simon Horman
On Mon, Nov 30, 2015 at 10:48:34PM +0200, Julian Anastasov wrote: > > Hello, > > On Mon, 30 Nov 2015, Arnd Bergmann wrote: > > > When CONFIG_PROC_FS is disabled, the local 'net' variable in > > ip_vs_app_net_init becomes unused, as gcc warns: > > > > net/netfilter/ipvs/ip_vs_app.c: In fun

Re: [PATCH] netfilter: ipvs: avoid unused variable warning

2015-11-30 Thread Julian Anastasov
Hello, On Mon, 30 Nov 2015, Arnd Bergmann wrote: > When CONFIG_PROC_FS is disabled, the local 'net' variable in > ip_vs_app_net_init becomes unused, as gcc warns: > > net/netfilter/ipvs/ip_vs_app.c: In function 'ip_vs_app_net_init': > net/netfilter/ipvs/ip_vs_app.c:608:14: warning: unus

[PATCH] netfilter: ipvs: avoid unused variable warning

2015-11-30 Thread Arnd Bergmann
When CONFIG_PROC_FS is disabled, the local 'net' variable in ip_vs_app_net_init becomes unused, as gcc warns: net/netfilter/ipvs/ip_vs_app.c: In function 'ip_vs_app_net_init': net/netfilter/ipvs/ip_vs_app.c:608:14: warning: unused variable 'net' [-Wunused-variable] This removes the line by movin