Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150030
b: refs/heads/master
c: 15b8e19
h: refs/heads/master
v: v3
  • Loading branch information
roel kluin authored and David S. Miller committed Apr 27, 2009
1 parent e708388 commit 09650a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 683703a26e4677db437a1480682851e27c7a154f
refs/heads/master: 15b8e19131486856373592e45793a79aefb6fbe7
7 changes: 4 additions & 3 deletions trunk/drivers/net/pasemi_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1733,7 +1733,7 @@ pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
{
struct net_device *dev;
struct pasemi_mac *mac;
int err;
int err, ret;

err = pci_enable_device(pdev);
if (err)
Expand Down Expand Up @@ -1791,12 +1791,13 @@ pasemi_mac_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
}
memcpy(dev->dev_addr, mac->mac_addr, sizeof(mac->mac_addr));

mac->dma_if = mac_to_intf(mac);
if (mac->dma_if < 0) {
ret = mac_to_intf(mac);
if (ret < 0) {
dev_err(&mac->pdev->dev, "Can't map DMA interface\n");
err = -ENODEV;
goto out;
}
mac->dma_if = ret;

switch (pdev->device) {
case 0xa005:
Expand Down

0 comments on commit 09650a0

Please sign in to comment.