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 /include/net/ax25.h | |
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 'include/net/ax25.h')
-rw-r--r-- | include/net/ax25.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/net/ax25.h b/include/net/ax25.h index 526e49589197..cb628c5d7c5b 100644 --- a/include/net/ax25.h +++ b/include/net/ax25.h @@ -187,18 +187,12 @@ typedef struct { typedef struct ax25_route { struct ax25_route *next; - refcount_t refcount; ax25_address callsign; struct net_device *dev; ax25_digi *digipeat; char ip_mode; } ax25_route; -static inline void ax25_hold_route(ax25_route *ax25_rt) -{ - refcount_inc(&ax25_rt->refcount); -} - void __ax25_put_route(ax25_route *ax25_rt); extern rwlock_t ax25_route_lock; @@ -213,12 +207,6 @@ static inline void ax25_route_lock_unuse(void) read_unlock(&ax25_route_lock); } -static inline void ax25_put_route(ax25_route *ax25_rt) -{ - if (refcount_dec_and_test(&ax25_rt->refcount)) - __ax25_put_route(ax25_rt); -} - typedef struct { char slave; /* slave_mode? */ struct timer_list slave_timer; /* timeout timer */ |