Commit 8b0fdcdc authored by Jakub Kicinski's avatar Jakub Kicinski Committed by David S. Miller

net: remove bond_slave_has_mac_rcu()

No caller since v3.16.
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 08dfa5a1
...@@ -698,20 +698,6 @@ static inline struct slave *bond_slave_has_mac(struct bonding *bond, ...@@ -698,20 +698,6 @@ static inline struct slave *bond_slave_has_mac(struct bonding *bond,
return NULL; return NULL;
} }
/* Caller must hold rcu_read_lock() for read */
static inline struct slave *bond_slave_has_mac_rcu(struct bonding *bond,
const u8 *mac)
{
struct list_head *iter;
struct slave *tmp;
bond_for_each_slave_rcu(bond, tmp, iter)
if (ether_addr_equal_64bits(mac, tmp->dev->dev_addr))
return tmp;
return NULL;
}
/* Caller must hold rcu_read_lock() for read */ /* Caller must hold rcu_read_lock() for read */
static inline bool bond_slave_has_mac_rx(struct bonding *bond, const u8 *mac) static inline bool bond_slave_has_mac_rx(struct bonding *bond, const u8 *mac)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment