Skip to content

Commit

Permalink
be2net: Fix be_dev_family_check() return value check
Browse files Browse the repository at this point in the history
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sathya Perla authored and David S. Miller committed Dec 6, 2010
1 parent c56b4d9 commit 63657b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/benet/be_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 63657b9

Please sign in to comment.