mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-26 14:17:26 -04:00
switchdev: Remove redundant variable
Instead of storing return value in 'err' and returning, just return directly. Signed-off-by: Ido Schimmel <idosch@mellanox.com> Reviewed-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b15ca182ed
commit
c778453b13
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue