]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: switchx2: Move port used check outside port remove function
authorJiri Pirko <jiri@mellanox.com>
Fri, 28 Oct 2016 19:35:48 +0000 (21:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 20:50:17 +0000 (16:50 -0400)
commit45fbfb43c32fae31682e6193caf0f9e8305aa8e9
treebe7a7fb5b8bcfb46c62000e6384b6ba87a6118f4
parentd0d429eff03a1a0db1824fd5b0d37c1b0ee74fe1
mlxsw: switchx2: Move port used check outside port remove function

Be symmentrical with create and do the check outside the remove function.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Elad Raz <eladr@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchx2.c