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:
Vivien Didelot 2015-10-11 18:08:37 -04:00 committed by David S. Miller
parent f02bdffca2
commit efd29b3d82
1 changed files with 1 additions and 1 deletions

View File

@ -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;