aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/switchdev/switchdev.c')
-rw-r--r--net/switchdev/switchdev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/switchdev/switchdev.c b/net/switchdev/switchdev.c
index 3b95fe980fa2..017801f9dbaa 100644
--- a/net/switchdev/switchdev.c
+++ b/net/switchdev/switchdev.c
@@ -624,13 +624,10 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
624int call_switchdev_notifiers(unsigned long val, struct net_device *dev, 624int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
625 struct switchdev_notifier_info *info) 625 struct switchdev_notifier_info *info)
626{ 626{
627 int err;
628
629 ASSERT_RTNL(); 627 ASSERT_RTNL();
630 628
631 info->dev = dev; 629 info->dev = dev;
632 err = raw_notifier_call_chain(&switchdev_notif_chain, val, info); 630 return raw_notifier_call_chain(&switchdev_notif_chain, val, info);
633 return err;
634} 631}
635EXPORT_SYMBOL_GPL(call_switchdev_notifiers); 632EXPORT_SYMBOL_GPL(call_switchdev_notifiers);
636 633