Subject: [PATCH net-next-2.6 1/3] be2net: Fix be_dev_family_check() return value check

From: Sathya Perla <[email-masked]>
Date: Wed, 1 Dec 2010 16:32:28 +0530

Signed-off-by: Sathya Perla <[email-masked]>
---
 drivers/net/benet/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/benet/be_main.c b/drivers/net/benet/be_main.c
index 102567e..ca4bf9b 100644
--- a/drivers/net/benet/be_main.c
+++ b/drivers/net/benet/be_main.c
@@ -2899,7 +2899,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
 	pci_set_drvdata(pdev, adapter);
 
 	status = be_dev_family_check(adapter);
-	if (!status)
+	if (status)
 		goto free_netdev;
 
 	adapter->netdev = netdev;
-- 
1.6.5.2