Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130115
b: refs/heads/master
c: 693fc0d
h: refs/heads/master
i:
  130113: 4ea55f4
  130111: 809068d
v: v3
  • Loading branch information
Eilon Greenstein authored and David S. Miller committed Jan 20, 2009
1 parent 82df54e commit 6a5f4ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 70b9986ca4baaf6deb6f0e01d50f72457579adea
refs/heads/master: 693fc0d14334859430733ab902adac182fdd8153
12 changes: 5 additions & 7 deletions trunk/drivers/net/bnx2x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -10269,17 +10269,15 @@ static int __devinit bnx2x_init_one(struct pci_dev *pdev,
return rc;
}

rc = register_netdev(dev);
if (rc) {
dev_err(&pdev->dev, "Cannot register net device\n");
goto init_one_exit;
}

pci_set_drvdata(pdev, dev);

rc = bnx2x_init_bp(bp);
if (rc)
goto init_one_exit;

rc = register_netdev(dev);
if (rc) {
unregister_netdev(dev);
dev_err(&pdev->dev, "Cannot register net device\n");
goto init_one_exit;
}

Expand Down

0 comments on commit 6a5f4ad

Please sign in to comment.