Commit efd29b3d authored by Vivien Didelot's avatar Vivien Didelot Committed by David S. Miller

net: dsa: do not warn unsupported bridge ops

A DSA driver may not provide the port_join_bridge and port_leave_bridge
functions, so don't warn in such case.
Signed-off-by: default avatarVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f02bdffc
...@@ -1276,7 +1276,7 @@ int dsa_slave_netdevice_event(struct notifier_block *unused, ...@@ -1276,7 +1276,7 @@ int dsa_slave_netdevice_event(struct notifier_block *unused,
goto out; goto out;
err = dsa_slave_master_changed(dev); err = dsa_slave_master_changed(dev);
if (err) if (err && err != -EOPNOTSUPP)
netdev_warn(dev, "failed to reflect master change\n"); netdev_warn(dev, "failed to reflect master change\n");
break; break;
......
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