]> git.baikalelectronics.ru Git - kernel.git/commit
net: phylink: simplify fixed-link case for ksettings_set method
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 21 Jul 2020 11:04:31 +0000 (12:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Jul 2020 22:46:50 +0000 (15:46 -0700)
commita0a9293e34a84f8aa4542859e26a4885228c1c8b
tree8e1f736cf92f00ae6a83783e9c48525dd2148cd0
parent60fbfa503c3abc4e20e9162041624ea054492c57
net: phylink: simplify fixed-link case for ksettings_set method

For fixed links, we only allow the current settings, so this should be
a matter of merely rejecting an attempt to change the settings.  If the
settings agree, then there is nothing more we need to do.

Reviewed-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c