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:
parent
c56b4d9012
commit
63657b9c31
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue