Commit c778453b authored by Ido Schimmel's avatar Ido Schimmel Committed by David S. Miller

switchdev: Remove redundant variable

Instead of storing return value in 'err' and returning, just return
directly.
Signed-off-by: default avatarIdo Schimmel <idosch@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b15ca182
...@@ -624,13 +624,10 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier); ...@@ -624,13 +624,10 @@ EXPORT_SYMBOL_GPL(unregister_switchdev_notifier);
int call_switchdev_notifiers(unsigned long val, struct net_device *dev, int call_switchdev_notifiers(unsigned long val, struct net_device *dev,
struct switchdev_notifier_info *info) struct switchdev_notifier_info *info)
{ {
int err;
ASSERT_RTNL(); ASSERT_RTNL();
info->dev = dev; info->dev = dev;
err = raw_notifier_call_chain(&switchdev_notif_chain, val, info); return raw_notifier_call_chain(&switchdev_notif_chain, val, info);
return err;
} }
EXPORT_SYMBOL_GPL(call_switchdev_notifiers); EXPORT_SYMBOL_GPL(call_switchdev_notifiers);
......
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