diff options
author | Vivien Didelot <vivien.didelot@savoirfairelinux.com> | 2015-10-11 18:08:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-13 04:26:30 -0700 |
commit | efd29b3d8266761570fd3f440e2d5aa24c678725 (patch) | |
tree | 3c2f480ed16f0a5e26675317a2788d49a4735aa4 /net/dsa | |
parent | f02bdffca29bc41e440ac67ffd47b56834d3bf85 (diff) |
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')
-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; |