[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20071015210221.26666.14629.stgit@localhost.localdomain>
Date: Mon, 15 Oct 2007 14:02:21 -0700
From: Auke Kok <auke-jan.h.kok@...el.com>
To: jeff@...zik.ok
Cc: netdev@...r.kernel.org, bunk@...nel.org, joe@...ches.com,
auke-jan.h.kok@...el.com
Subject: [PATCH 2/2] e1000e: fix error checks
From: Adrian Bunk <bunk@...nel.org>
Spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@...nel.org>
Signed-off-by: Auke Kok <auke-jan.h.kok@...el.com>
---
drivers/net/e1000e/ethtool.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/e1000e/ethtool.c b/drivers/net/e1000e/ethtool.c
index b7a7e2a..ca06c35 100644
--- a/drivers/net/e1000e/ethtool.c
+++ b/drivers/net/e1000e/ethtool.c
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists