]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan966x: remove guards against !BRIDGE_VLAN_INFO_BRENTRY
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 16 Feb 2022 16:47:49 +0000 (18:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Feb 2022 14:17:09 +0000 (14:17 +0000)
commit22659d891a091aca73f6d7e9ed89fb932c9ded8d
tree26f1a97a2a438eabc7adc2d1ec026cbe7a34a07c
parent79558fe0b7cd28196d3521653319752a3019b35f
net: lan966x: remove guards against !BRIDGE_VLAN_INFO_BRENTRY

Since commit 1c5df3f13b2b ("net: bridge: vlan: don't notify to switchdev
master VLANs without BRENTRY flag"), the bridge no longer emits
switchdev notifiers for VLANs that don't have the
BRIDGE_VLAN_INFO_BRENTRY flag, so these checks are dead code.
Remove them.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/microchip/lan966x/lan966x_switchdev.c