Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256000
b: refs/heads/master
c: bda7ed4
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and David S. Miller committed Jul 1, 2011
1 parent 8b6a99d commit ae86bbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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: 0311ee2262440b903a81fa38512d12bc2478e66f
refs/heads/master: bda7ed47937bd9ba8c10631ca884f7fefb162f4d
14 changes: 6 additions & 8 deletions trunk/drivers/net/arm/am79c961a.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,17 +199,15 @@ am79c961_ramtest(struct net_device *dev, unsigned int val)

static void am79c961_mc_hash(char *addr, u16 *hash)
{
if (addr[0] & 0x01) {
int idx, bit;
u32 crc;
int idx, bit;
u32 crc;

crc = ether_crc_le(ETH_ALEN, addr);
crc = ether_crc_le(ETH_ALEN, addr);

idx = crc >> 30;
bit = (crc >> 26) & 15;
idx = crc >> 30;
bit = (crc >> 26) & 15;

hash[idx] |= 1 << bit;
}
hash[idx] |= 1 << bit;
}

static unsigned int am79c961_get_rx_mode(struct net_device *dev, u16 *hash)
Expand Down

0 comments on commit ae86bbe

Please sign in to comment.