]> git.baikalelectronics.ru Git - kernel.git/commit
ipvs: Remove possibly unused variable from ip_vs_out
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 1 Oct 2015 15:49:04 +0000 (08:49 -0700)
committerSimon Horman <horms@verge.net.au>
Wed, 7 Oct 2015 01:11:59 +0000 (10:11 +0900)
commitb1f8995152e6927f37c86bb4ad2d6407499961d5
tree431140017fe25507a09bc4b8055fbbd45d4f793e
parent9d6e2dc97e2730045187217651227309aca0f557
ipvs: Remove possibly unused variable from ip_vs_out

Eric's net namespace changes in 2b9e2b6418d72 leaves net unreferenced if
CONFIG_IP_VS_IPV6 is not enabled:

../net/netfilter/ipvs/ip_vs_core.c: In function ‘ip_vs_out’:
../net/netfilter/ipvs/ip_vs_core.c:1177:14: warning: unused variable ‘net’ [-Wunused-variable]

After the net refactoring there is only 1 user; push the reference to the
1 user. While the line length slightly exceeds 80 it seems to be the
best change.

Fixes: 2b9e2b6418d72("ipvs: Pass ipvs into ip_vs_out")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Acked-by: Julian Anastasov <ja@ssi.bg>
[horms: updated subject]
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_core.c