aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_ethtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000/e1000_ethtool.c')
-rw-r--r--drivers/net/e1000/e1000_ethtool.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index 8eae8ba27e84..8584e9382c2c 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -1440,9 +1440,11 @@ static int
1440e1000_loopback_test(struct e1000_adapter *adapter, uint64_t *data) 1440e1000_loopback_test(struct e1000_adapter *adapter, uint64_t *data)
1441{ 1441{
1442 if((*data = e1000_setup_desc_rings(adapter))) goto err_loopback; 1442 if((*data = e1000_setup_desc_rings(adapter))) goto err_loopback;
1443 if((*data = e1000_setup_loopback_test(adapter))) goto err_loopback; 1443 if((*data = e1000_setup_loopback_test(adapter)))
1444 goto err_loopback_setup;
1444 *data = e1000_run_loopback_test(adapter); 1445 *data = e1000_run_loopback_test(adapter);
1445 e1000_loopback_cleanup(adapter); 1446 e1000_loopback_cleanup(adapter);
1447err_loopback_setup:
1446 e1000_free_desc_rings(adapter); 1448 e1000_free_desc_rings(adapter);
1447err_loopback: 1449err_loopback:
1448 return *data; 1450 return *data;