diff options
author | David Ahern <dsahern@gmail.com> | 2018-04-19 00:39:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-19 21:40:13 +0200 |
commit | 9ee8cbb2fd4a7d6f483a20c4b8e82d8b1cf685fa (patch) | |
tree | 299163a7c5d2986f164615ba0655846ca8114a69 /net/ipv6/anycast.c | |
parent | net/ipv6: Rename addrconf_dst_alloc (diff) | |
download | linux-9ee8cbb2fd4a7d6f483a20c4b8e82d8b1cf685fa.tar.xz linux-9ee8cbb2fd4a7d6f483a20c4b8e82d8b1cf685fa.zip |
net/ipv6: Remove aca_idev
aca_idev has only 1 user - inet6_fill_ifacaddr - and it only
wants the device index which can be extracted from the fib6_info
nexthop.
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/anycast.c')
-rw-r--r-- | net/ipv6/anycast.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv6/anycast.c b/net/ipv6/anycast.c index 5c3e74d05018..0250d199e527 100644 --- a/net/ipv6/anycast.c +++ b/net/ipv6/anycast.c @@ -212,7 +212,6 @@ static void aca_get(struct ifacaddr6 *aca) static void aca_put(struct ifacaddr6 *ac) { if (refcount_dec_and_test(&ac->aca_refcnt)) { - in6_dev_put(ac->aca_idev); fib6_info_release(ac->aca_rt); kfree(ac); } @@ -221,7 +220,6 @@ static void aca_put(struct ifacaddr6 *ac) static struct ifacaddr6 *aca_alloc(struct fib6_info *f6i, const struct in6_addr *addr) { - struct inet6_dev *idev = f6i->fib6_idev; struct ifacaddr6 *aca; aca = kzalloc(sizeof(*aca), GFP_ATOMIC); @@ -229,8 +227,6 @@ static struct ifacaddr6 *aca_alloc(struct fib6_info *f6i, return NULL; aca->aca_addr = *addr; - in6_dev_hold(idev); - aca->aca_idev = idev; fib6_info_hold(f6i); aca->aca_rt = f6i; aca->aca_users = 1; |