diff options
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index 9a240536debc..16258d83b703 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -100,7 +100,7 @@ static int efx_test_mdio(struct efx_nic *efx, struct efx_self_tests *tests) | |||
100 | } | 100 | } |
101 | 101 | ||
102 | if (EFX_IS10G(efx)) { | 102 | if (EFX_IS10G(efx)) { |
103 | rc = efx_mdio_check_mmds(efx, efx->phy_op->mmds, 0); | 103 | rc = efx_mdio_check_mmds(efx, efx->mdio.mmds, 0); |
104 | if (rc) | 104 | if (rc) |
105 | goto out; | 105 | goto out; |
106 | } | 106 | } |
@@ -253,9 +253,6 @@ static int efx_test_phy(struct efx_nic *efx, struct efx_self_tests *tests, | |||
253 | if (!efx->phy_op->run_tests) | 253 | if (!efx->phy_op->run_tests) |
254 | return 0; | 254 | return 0; |
255 | 255 | ||
256 | EFX_BUG_ON_PARANOID(efx->phy_op->num_tests == 0 || | ||
257 | efx->phy_op->num_tests > EFX_MAX_PHY_TESTS); | ||
258 | |||
259 | mutex_lock(&efx->mac_lock); | 256 | mutex_lock(&efx->mac_lock); |
260 | rc = efx->phy_op->run_tests(efx, tests->phy, flags); | 257 | rc = efx->phy_op->run_tests(efx, tests->phy, flags); |
261 | mutex_unlock(&efx->mac_lock); | 258 | mutex_unlock(&efx->mac_lock); |