net: mtk_eth_soc: remove unnecessary checks in mtk_mac_config()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 7 Mar 2023 16:19:36 +0000 (16:19 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 9 Mar 2023 08:51:31 +0000 (09:51 +0100)
commitc9f9e3a3289f2f068db45ea1219aa5b295762f44
treebfb56d26d25849818c35c2115eedb5538afd3e22
parent7910898e1b2ae8ba0646434294931bf69cc0fdb5
net: mtk_eth_soc: remove unnecessary checks in mtk_mac_config()

mtk_mac_config() checks that the interface mode is permitted for the
capabilities, but we already do these checks in mtk_add_mac() when
initialising phylink's supported_interfaces bitmap. Remove the
unnecessary tests.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mediatek/mtk_eth_soc.c