]> git.baikalelectronics.ru Git - kernel.git/commit
net: ocelot_net: remove interface checks in macb_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 16 Nov 2021 10:09:36 +0000 (10:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 11:25:45 +0000 (11:25 +0000)
commitbd4b02ab9487c9494af03713a38ff524c4e01d80
tree95af67b0f0e8d20d43eb4679b6378096beb58b57
parenta088d1cadae5c232d7e1cedbe3a3315f38287d27
net: ocelot_net: remove interface checks in macb_validate()

As phylink checks the interface mode against the supported_interfaces
bitmap, we no longer need to validate the interface mode in the
validation function. Remove this to simplify it.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_net.c