]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Remove redundant errors from the code
authorIdo Schimmel <idosch@mellanox.com>
Wed, 17 Aug 2016 14:39:29 +0000 (16:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2016 23:18:27 +0000 (19:18 -0400)
commita7909c03f39e519c33b9d85761edd6ce6213dd71
tree2a3950c5bc3c62efe04ba3f8b662edbeacc4b980
parent4d4c7d780bbde3b205a1801cc5b9bc04948f2abb
mlxsw: spectrum: Remove redundant errors from the code

Currently, when device configuration fails we emit errors to the kernel
log despite the fact we already get these from the EMAD transaction
layer, so remove them.

In addition to being unnecessary, removing these error messages will
allow us to reuse mlxsw_sp_port_add_vid() to create the PVID vPort
before registering the netdevice.

Fixes: 1cc503140fec ("mlxsw: spectrum: Introduce support for router interfaces")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c