diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-01-26 11:11:00 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-01-27 13:53:27 +0000 |
commit | 560e08eda7969c3ef0639ab05f718be03a49d387 (patch) | |
tree | f6fbd1b394c602b4c069133416709505c50fd454 /net/ax25 | |
parent | 8b0fdcdc3a7d44aff907f0103f5ffb86b12bfe71 (diff) | |
download | linux-stable-560e08eda7969c3ef0639ab05f718be03a49d387.tar.gz linux-stable-560e08eda7969c3ef0639ab05f718be03a49d387.tar.bz2 linux-stable-560e08eda7969c3ef0639ab05f718be03a49d387.zip |
net: ax25: remove route refcount
Nothing takes the refcount since v4.9.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ax25')
-rw-r--r-- | net/ax25/ax25_route.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c index d0b2e094bd55..be97dc6a53cb 100644 --- a/net/ax25/ax25_route.c +++ b/net/ax25/ax25_route.c @@ -111,7 +111,6 @@ static int __must_check ax25_rt_add(struct ax25_routes_struct *route) return -ENOMEM; } - refcount_set(&ax25_rt->refcount, 1); ax25_rt->callsign = route->dest_addr; ax25_rt->dev = ax25_dev->dev; ax25_rt->digipeat = NULL; @@ -160,12 +159,12 @@ static int ax25_rt_del(struct ax25_routes_struct *route) ax25cmp(&route->dest_addr, &s->callsign) == 0) { if (ax25_route_list == s) { ax25_route_list = s->next; - ax25_put_route(s); + __ax25_put_route(s); } else { for (t = ax25_route_list; t != NULL; t = t->next) { if (t->next == s) { t->next = s->next; - ax25_put_route(s); + __ax25_put_route(s); break; } } |