Skip to content

Commit

Permalink
net: dsa: do not warn unsupported bridge ops
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
vivien authored and davem330 committed Oct 13, 2015
1 parent f02bdff commit efd29b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dsa/slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit efd29b3

Please sign in to comment.