]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: improve and inline phy_change
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Nov 2018 17:58:01 +0000 (18:58 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:41:32 +0000 (09:41 -0800)
commit10361a275583666e3aee0f985d502bf4f3bdba85
treec5c5c320b82e02d495eed42746ba3668b265e89a
parenteda97443c7e1b3671ac2a7aa05d2cb478befdc93
net: phy: improve and inline phy_change

Now that phy_mac_interrupt() doesn't call phy_change() any longer it's
called from phy_interrupt() only. Therefore phy_interrupt_is_valid()
returns true always and the check can be removed.
In case of PHY_HALTED phy_interrupt() bails out immediately,
therefore the second check for PHY_HALTED including the call to
phy_disable_interrupts() can be removed.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c