]> Git Repo - linux.git/blobdiff - net/switchdev/switchdev.c
drivers, usb: convert ffs_data.ref from atomic_t to refcount_t
[linux.git] / net / switchdev / switchdev.c
index 3b95fe980fa27e8cf97bedac9b7b46e7f8fe4e2d..017801f9dbaae28ff3bd411af3fce3a84da6c90d 100644 (file)
@@ -624,13 +624,10 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
 int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
                             struct switchdev_notifier_info *info)
 {
-       int err;
-
        ASSERT_RTNL();
 
        info->dev = dev;
-       err = raw_notifier_call_chain(&switchdev_notif_chain, val, info);
-       return err;
+       return raw_notifier_call_chain(&switchdev_notif_chain, val, info);
 }
 EXPORT_SYMBOL_GPL(call_switchdev_notifiers);
 
This page took 0.030443 seconds and 4 git commands to generate.