Merge pull request #759 from ecsv/batadv-2021.4

batman-adv: Drop duplicated dev_{hold,put} compat helpers
This commit is contained in:
Simon Wunderlich 2021-11-28 17:53:36 +01:00 committed by GitHub
commit 65585a746d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 18 deletions

View File

@ -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)
{