]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: marvell: Fix build.
authorDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 05:41:31 +0000 (22:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Sep 2018 05:41:31 +0000 (22:41 -0700)
commit8faefb5990ddbcffd6d55e69326cbe9a957b8862
tree5c286f351978698aac77e1c417bf584c82132b5d
parentf22f5808bf495c431f35c543077ab0e3193f6593
net: phy: marvell: Fix build.

Local variable 'autoneg' doesn't even exist:

drivers/net/phy/marvell.c: In function 'm88e1121_config_aneg':
drivers/net/phy/marvell.c:468:25: error: 'autoneg' undeclared (first use in this function); did you mean 'put_net'?
  if (phydev->autoneg != autoneg || changed) {
                         ^~~~~~~

Fixes: 1186a3d65965 ("net: phy: marvell: Avoid unnecessary soft reset")
Reported-by:Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c