]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_switchdev: Remove redundant check
authorIdo Schimmel <idosch@mellanox.com>
Tue, 16 May 2017 17:38:30 +0000 (19:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 May 2017 18:06:54 +0000 (14:06 -0400)
commit41ec7c1f88da9d5ff15b857842f8161b8f2ca507
treefab9778daca58f69ac9f104d622b85d745dbb6ed
parentb980b1f5f69c7649aa144c019569d91cf3821db4
mlxsw: spectrum_switchdev: Remove redundant check

Since commit 8aab640d1484 ("switchdev: Execute bridge ndos only for
bridge ports") switchdev code checks that port is bridged, so no need to
perform the same check in the driver.

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_switchdev.c