]> git.baikalelectronics.ru Git - kernel.git/commit
net: sparx5: clean up sparx5_phylink_validate()
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Tue, 16 Nov 2021 10:02:06 +0000 (10:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Nov 2021 11:21:42 +0000 (11:21 +0000)
commit7c41be71b750a0b06d5d42ac191a4f6a5405317f
tree675d05ed9e58cc365412ecde64bd7014742b372e
parent42e1cf25757b1121970b31d95d4be7f86f356b35
net: sparx5: clean up sparx5_phylink_validate()

sparx5_phylink_validate() no longer needs to check for
PHY_INTERFACE_MODE_NA as phylink will walk the supported interface
types to discover the link mode capabilities. Neither is it necessary
to check the device capabilities as we will not be called for
unsupported interface modes. Remove these checks.

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