提交 efd29b3d 编写于 作者: V Vivien Didelot 提交者: 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: NVivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册