be2net: Fix be_dev_family_check() return value check
authorSathya Perla <sathya.perla@emulex.com>
Wed, 1 Dec 2010 01:02:28 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 6 Dec 2010 20:59:07 +0000 (12:59 -0800)
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_main.c

index 275428032ce269dc92f209ed517f5c3c071bc03e..ea8cf690a072b0494dd72a2d5354f4894f37c9f1 100644 (file)
@@ -2901,7 +2901,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;