Commit 32e9b144 authored by Scott Feldman's avatar Scott Feldman Committed by Linus Torvalds

[e1000] ethtool diag cleanup

* Cleanup: ethtool diags: only reset if not if_running.
parent e5327f5f
......@@ -1112,8 +1112,9 @@ e1000_ethtool_test(struct e1000_adapter *adapter,
if(if_running)
e1000_down(adapter);
e1000_reset(adapter);
else
e1000_reset(adapter);
if(e1000_reg_test(adapter, &data[0]))
eth_test->flags |= ETH_TEST_FL_FAILED;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment