Fix card_idx calculation, thanks sn9
SVN-Revision: 12294
This commit is contained in:
parent
02780ec100
commit
f2340f4b92
1 changed files with 1 additions and 1 deletions
|
@ -1326,7 +1326,7 @@ int __devinit r6040_init_one(struct pci_dev *pdev,
|
||||||
dev->name);
|
dev->name);
|
||||||
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
|
memcpy(dev->dev_addr, dflt_addr, ETH_ALEN);
|
||||||
}
|
}
|
||||||
dev->dev_addr[ETH_ALEN-1] += card_idx; /* + 0 or 1 */
|
dev->dev_addr[ETH_ALEN-1] += card_idx ^ 1; /* + 0 or 1 */
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_NET_POLL_CONTROLLER
|
#ifdef CONFIG_NET_POLL_CONTROLLER
|
||||||
|
|
Loading…
Reference in a new issue