diff options
| author | Stephen Rothwell <sfr@canb.auug.org.au> | 2011-07-25 13:59:46 -0400 | 
|---|---|---|
| committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2011-07-25 14:53:52 -0400 | 
| commit | 5f00bcb38ef9a980a33c6dbdc0044964b05f22dd (patch) | |
| tree | 3175fb9375aecb50bde1be0bf4fa8aa8155131d6 /drivers/net/bmac.c | |
| parent | 34006cee28f7344f9557a4be3816c7891b1bbab1 (diff) | |
| parent | b6844e8f64920cdee620157252169ba63afb0c89 (diff) | |
Merge branch 'master' into devel and apply fixup from Stephen Rothwell:
vfs/nfs: fixup for nfs_open_context change
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'drivers/net/bmac.c')
| -rw-r--r-- | drivers/net/bmac.c | 9 | 
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/net/bmac.c b/drivers/net/bmac.c index a1b8c8b8010..45e45e8d3d6 100644 --- a/drivers/net/bmac.c +++ b/drivers/net/bmac.c @@ -7,6 +7,7 @@   * May 1999, Al Viro: proper release of /proc/net/bmac entry, switched to   * dynamic procfs inode.   */ +#include <linux/interrupt.h>  #include <linux/module.h>  #include <linux/kernel.h>  #include <linux/netdevice.h> @@ -1014,7 +1015,6 @@ static void bmac_set_multicast(struct net_device *dev)  static void bmac_set_multicast(struct net_device *dev)  {  	struct netdev_hw_addr *ha; -	char *addrs;  	int i;  	unsigned short rx_cfg;  	u32 crc; @@ -1038,12 +1038,7 @@ static void bmac_set_multicast(struct net_device *dev)  		for(i = 0; i < 4; i++) hash_table[i] = 0;  		netdev_for_each_mc_addr(ha, dev) { -			addrs = ha->addr; - -			if(!(*addrs & 1)) -				continue; - -			crc = ether_crc_le(6, addrs); +			crc = ether_crc_le(6, ha->addr);  			crc >>= 26;  			hash_table[crc >> 4] |= 1 << (crc & 0xf);  		}  | 
