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)
commitf83e21027b4d8871d896f6e180171c289b60718c
tree6b547a7671e2d9512f42e390ddb71ca9207fafd6
parentadc4e04a4bbd7696c9aa99eec951ddaf26ac27e1
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