diff options
| author | Simon Wunderlich <sw@simonwunderlich.de> | 2021-11-28 17:53:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-28 17:53:36 +0100 |
| commit | 65585a746daae7060f69b265af178ab7a4e5c84c (patch) | |
| tree | 6ef6bd49d02af9f4c3999bb5024d75b65caacfe5 | |
| parent | 3d6b699668a2c65296103e6468486b0fdbfd46fb (diff) | |
| parent | a2fe1d413176d5856a7a3f3e736208a6872a2b85 (diff) | |
Merge pull request #759 from ecsv/batadv-2021.4
batman-adv: Drop duplicated dev_{hold,put} compat helpers
| -rw-r--r-- | batman-adv/src/compat-hacks.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/batman-adv/src/compat-hacks.h b/batman-adv/src/compat-hacks.h index ddd8671..99a1bb3 100644 --- a/batman-adv/src/compat-hacks.h +++ b/batman-adv/src/compat-hacks.h @@ -94,24 +94,6 @@ br_multicast_has_router_adjacent(struct net_device *dev, int proto) #if LINUX_VERSION_IS_LESS(5, 15, 0) -static inline void batadv_dev_put(struct net_device *dev) -{ - if (!dev) - return; - - dev_put(dev); -} -#define dev_put batadv_dev_put - -static inline void batadv_dev_hold(struct net_device *dev) -{ - if (!dev) - return; - - dev_hold(dev); -} -#define dev_hold batadv_dev_hold - static inline void batadv_eth_hw_addr_set(struct net_device *dev, const u8 *addr) { |
