mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
e1000e: fix error checks
Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
121244a7bf
commit
e265522ca7
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue