diff options
author | Andrea Claudi <aclaudi@redhat.com> | 2019-02-15 19:51:48 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-02-16 12:41:42 +0300 |
commit | c93a49b9769e435990c82297aa0baa31e1538790 (patch) | |
tree | 6a08387266e552ec499db712e794cb81b53ae5e9 /net/unix/af_unix.c | |
parent | 23b7ca4f745f21c2b9cfcb67fdd33733b3ae7e66 (diff) | |
download | linux-c93a49b9769e435990c82297aa0baa31e1538790.tar.xz |
ipvs: fix warning on unused variable
When CONFIG_IP_VS_IPV6 is not defined, build produced this warning:
net/netfilter/ipvs/ip_vs_ctl.c:899:6: warning: unused variable ‘ret’ [-Wunused-variable]
int ret = 0;
^~~
Fix this by moving the declaration of 'ret' in the CONFIG_IP_VS_IPV6
section in the same function.
While at it, drop its unneeded initialisation.
Fixes: 098e13f5b21d ("ipvs: fix dependency on nf_defrag_ipv6")
Reported-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Andrea Claudi <aclaudi@redhat.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions