diff options
Diffstat (limited to 'drivers/net/sfc/selftest.c')
-rw-r--r-- | drivers/net/sfc/selftest.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/sfc/selftest.c b/drivers/net/sfc/selftest.c index f30355210044..fa56e2e8e9c5 100644 --- a/drivers/net/sfc/selftest.c +++ b/drivers/net/sfc/selftest.c | |||
@@ -113,10 +113,13 @@ out: | |||
113 | 113 | ||
114 | static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) | 114 | static int efx_test_nvram(struct efx_nic *efx, struct efx_self_tests *tests) |
115 | { | 115 | { |
116 | int rc; | 116 | int rc = 0; |
117 | |||
118 | if (efx->type->test_nvram) { | ||
119 | rc = efx->type->test_nvram(efx); | ||
120 | tests->nvram = rc ? -1 : 1; | ||
121 | } | ||
117 | 122 | ||
118 | rc = falcon_read_nvram(efx, NULL); | ||
119 | tests->nvram = rc ? -1 : 1; | ||
120 | return rc; | 123 | return rc; |
121 | } | 124 | } |
122 | 125 | ||