diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-10-12 00:08:37 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-13 13:26:30 +0200 |
commit | efd29b3d8266761570fd3f440e2d5aa24c678725 (patch) | |
tree | 3c2f480ed16f0a5e26675317a2788d49a4735aa4 /net/dsa/slave.c | |
parent | net: dsa: mv88e6xxx: do not support per-port FID (diff) | |
download | linux-efd29b3d8266761570fd3f440e2d5aa24c678725.tar.xz linux-efd29b3d8266761570fd3f440e2d5aa24c678725.zip |
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>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index bb2bd3b56b16..43d7342e7527 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -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; |