diff options
author | Florent Fourcot | 2020-07-31 15:32:06 +0200 |
---|---|---|
committer | David S. Miller | 2020-08-03 15:24:14 -0700 |
commit | d208a42a62e70b9c86b46b7bad126eb862891314 (patch) | |
tree | 7efb28fb4cd80a2d8f956254107c2abe53c0e121 /net | |
parent | b90a1269184a3ff374562d243419ad2fa9d3b1aa (diff) |
ipv6/addrconf: call addrconf_ifdown with consistent values
Second parameter of addrconf_ifdown "how" is used as a boolean
internally. It does not make sense to call it with something different
of 0 or 1.
This value is set to 2 in all git history.
Signed-off-by: Florent Fourcot <florent.fourcot@wifirst.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv6/addrconf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 840bfdb3d7bd..861265fa9d6d 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -7189,7 +7189,7 @@ void addrconf_cleanup(void) continue; addrconf_ifdown(dev, 1); } - addrconf_ifdown(init_net.loopback_dev, 2); + addrconf_ifdown(init_net.loopback_dev, 1); /* * Check hash table. |