]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Move port used check outside port remove function
authorJiri Pirko <jiri@mellanox.com>
Fri, 28 Oct 2016 19:35:49 +0000 (21:35 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Oct 2016 20:50:17 +0000 (16:50 -0400)
commitcf6aae97922bc0919736ebed88d516347274c74c
tree6b547a7671e2d9512f42e390ddb71ca9207fafd6
parent45fbfb43c32fae31682e6193caf0f9e8305aa8e9
mlxsw: spectrum: 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/spectrum.c