forked from luck/tmp_suning_uos_patched
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: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f02bdffca2
commit
efd29b3d82
|
@ -1276,7 +1276,7 @@ int dsa_slave_netdevice_event(struct notifier_block *unused,
|
|||
goto out;
|
||||
|
||||
err = dsa_slave_master_changed(dev);
|
||||
if (err)
|
||||
if (err && err != -EOPNOTSUPP)
|
||||
netdev_warn(dev, "failed to reflect master change\n");
|
||||
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user