Commit 82741808 authored by dingtianhong's avatar dingtianhong Committed by David S. Miller
Browse files

bonding: netpoll: remove unwanted slave_dev_support_netpoll()

The __netpoll_setup() will check the slave's flag and ndo_poll_controller just
like the slave_dev_support_netpoll() does, and slave_dev_support_netpoll() was
not used by any place, so remove it.

Cc: Jay Vosburgh <>
Cc: Veaceslav Falico <>
Cc: Andy Gospodarek <>
Signed-off-by: default avatarDing Tianhong <>
Signed-off-by: default avatarDavid S. Miller <>
parent 1f5a7407
......@@ -942,14 +942,6 @@ static inline void slave_disable_netpoll(struct slave *slave)
slave->np = NULL;
static inline bool slave_dev_support_netpoll(struct net_device *slave_dev)
if (slave_dev->priv_flags & IFF_DISABLE_NETPOLL)
return false;
if (!slave_dev->netdev_ops->ndo_poll_controller)
return false;
return true;
static void bond_poll_controller(struct net_device *bond_dev)
Supports Markdown
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