]> git.baikalelectronics.ru Git - kernel.git/commit
net: lan743x: Use correct variable in lan743x_sgmii_config()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 23 Jun 2022 13:34:03 +0000 (16:34 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 18:19:29 +0000 (11:19 -0700)
commit829cdd3581b6f777f113a26ca1fee97cf3879b5d
treeaa271fdfaf6d4719691f4f79be2ac9156e18f3c0
parent071b4144b31dec6b8214f3606aa1a124492da18b
net: lan743x: Use correct variable in lan743x_sgmii_config()

There is a copy and paste bug in lan743x_sgmii_config() so it checks
if (ret < 0) instead of if (mii_ctl < 0).

Fixes: f16abd441749 ("net: lan743x: Add support to SGMII 1G and 2.5G")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/YrRry7K66BzKezl8@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/lan743x_main.c