OSDN Git Service

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)
commit9b5cc05fd91c1ea0f6eb4765464449a519d1eea4
tree675d05ed9e58cc365412ecde64bd7014742b372e
parentae089a8191764ba39d2867293eab5e7a9627f12c
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