]> 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)
commitb203872714a2ffd28fd786ac2c6e5dea3f4bf5e1
tree6b547a7671e2d9512f42e390ddb71ca9207fafd6
parentbcfbbcd16184145c9da2903aa1ed0f37ac615d96
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