mlxsw: use netif_is_any_bridge_port() instead of open code
authorJuhee Kang <claudiajkang@gmail.com>
Thu, 21 Jul 2022 10:26:47 +0000 (19:26 +0900)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Jul 2022 11:35:45 +0000 (12:35 +0100)
commit59ad24714b7bb0c46c69cffc55478cc3295465d3
treeed71b2e1299cafbdcb8dcd1772eca47e9fa449a6
parentb66eb3a6e427b059101c6c92ac2ddd899014634c
mlxsw: use netif_is_any_bridge_port() instead of open code

The open code which is netif_is_bridge_port() || netif_is_ovs_port() is
defined as a new helper function on netdev.h like netif_is_any_bridge_port
that can check both IFF flags in 1 go. So use netif_is_any_bridge_port()
function instead of open code. This patch doesn't change logic.

Signed-off-by: Juhee Kang <claudiajkang@gmail.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c