be2net: Fix be_dev_family_check() return value check

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Sathya Perla 2010-12-01 01:02:28 +00:00 committed by David S. Miller
parent c56b4d9012
commit 63657b9c31

View File

@ -2901,7 +2901,7 @@ static int __devinit be_probe(struct pci_dev *pdev,
pci_set_drvdata(pdev, adapter); pci_set_drvdata(pdev, adapter);
status = be_dev_family_check(adapter); status = be_dev_family_check(adapter);
if (!status) if (status)
goto free_netdev; goto free_netdev;
adapter->netdev = netdev; adapter->netdev = netdev;