Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254682
b: refs/heads/master
c: 9b9cfe7
h: refs/heads/master
v: v3
  • Loading branch information
Kristoffer Glembo authored and David S. Miller committed Jul 5, 2011
1 parent 81a8e21 commit e41306b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 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: c349a528cd47e2272ded0ea358363855e86180da
refs/heads/master: 9b9cfe7cf663c16c0d93349cc0094bb28ae7135a
7 changes: 3 additions & 4 deletions trunk/drivers/net/greth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,11 +1015,10 @@ static int greth_set_mac_add(struct net_device *dev, void *p)
return -EINVAL;

memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
GRETH_REGSAVE(regs->esa_msb, dev->dev_addr[0] << 8 | dev->dev_addr[1]);
GRETH_REGSAVE(regs->esa_lsb, dev->dev_addr[2] << 24 | dev->dev_addr[3] << 16 |
dev->dev_addr[4] << 8 | dev->dev_addr[5]);

GRETH_REGSAVE(regs->esa_msb, addr->sa_data[0] << 8 | addr->sa_data[1]);
GRETH_REGSAVE(regs->esa_lsb,
addr->sa_data[2] << 24 | addr->
sa_data[3] << 16 | addr->sa_data[4] << 8 | addr->sa_data[5]);
return 0;
}

Expand Down

0 comments on commit e41306b

Please sign in to comment.