summaryrefslogtreecommitdiffstats
path: root/net/dsa/slave.c
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-09-20 03:00:37 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-21 00:49:07 +0200
commit53bade8a3372eea0f1276bc96892735c517330fe (patch)
tree551f4414335c2a364df248b354a0eeb820a86407 /net/dsa/slave.c
parentRevert "bridge: also trigger RTM_NEWLINK when interface is released from bridge" (diff)
downloadlinux-53bade8a3372eea0f1276bc96892735c517330fe.tar.xz
linux-53bade8a3372eea0f1276bc96892735c517330fe.zip
net: dsa: Utilize dsa_slave_dev_check()
Instead of open coding the check. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index d51b10450e1b..6fc9eb094267 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1294,7 +1294,7 @@ static int dsa_slave_netdevice_event(struct notifier_block *nb,
{
struct net_device *dev = netdev_notifier_info_to_dev(ptr);
- if (dev->netdev_ops != &dsa_slave_netdev_ops)
+ if (!dsa_slave_dev_check(dev))
return NOTIFY_DONE;
if (event == NETDEV_CHANGEUPPER)