提交 e265522c 编写于 作者: A Adrian Bunk 提交者: Jeff Garzik

e1000e: fix error checks

Spotted by the Coverity checker.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: NJeff Garzik <jeff@garzik.org>
上级 121244a7
......@@ -1451,11 +1451,11 @@ static int e1000_loopback_test(struct e1000_adapter *adapter, u64 *data)
}
*data = e1000_setup_desc_rings(adapter);
if (data)
if (*data)
goto out;
*data = e1000_setup_loopback_test(adapter);
if (data)
if (*data)
goto err_loopback;
*data = e1000_run_loopback_test(adapter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册