summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Wunderlich <sw@simonwunderlich.de>2021-11-28 17:53:36 +0100
committerGitHub <noreply@github.com>2021-11-28 17:53:36 +0100
commit65585a746daae7060f69b265af178ab7a4e5c84c (patch)
tree6ef6bd49d02af9f4c3999bb5024d75b65caacfe5
parent3d6b699668a2c65296103e6468486b0fdbfd46fb (diff)
parenta2fe1d413176d5856a7a3f3e736208a6872a2b85 (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.h18
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)
{