aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cris/eth_v10.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/cris/eth_v10.c')
-rw-r--r--drivers/net/cris/eth_v10.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/cris/eth_v10.c b/drivers/net/cris/eth_v10.c
index c9309eadebc1..dd24aadb778c 100644
--- a/drivers/net/cris/eth_v10.c
+++ b/drivers/net/cris/eth_v10.c
@@ -1596,13 +1596,12 @@ set_multicast_list(struct net_device *dev)
1596 } else { 1596 } else {
1597 /* MC mode, receive normal and MC packets */ 1597 /* MC mode, receive normal and MC packets */
1598 char hash_ix; 1598 char hash_ix;
1599 struct dev_mc_list *dmi = dev->mc_list; 1599 struct dev_mc_list *dmi;
1600 int i;
1601 char *baddr; 1600 char *baddr;
1602 1601
1603 lo_bits = 0x00000000ul; 1602 lo_bits = 0x00000000ul;
1604 hi_bits = 0x00000000ul; 1603 hi_bits = 0x00000000ul;
1605 for (i = 0; i < num_addr; i++) { 1604 netdev_for_each_mc_addr(dmi, dev) {
1606 /* Calculate the hash index for the GA registers */ 1605 /* Calculate the hash index for the GA registers */
1607 1606
1608 hash_ix = 0; 1607 hash_ix = 0;
@@ -1632,7 +1631,6 @@ set_multicast_list(struct net_device *dev)
1632 } else { 1631 } else {
1633 lo_bits |= (1 << hash_ix); 1632 lo_bits |= (1 << hash_ix);
1634 } 1633 }
1635 dmi = dmi->next;
1636 } 1634 }
1637 /* Disable individual receive */ 1635 /* Disable individual receive */
1638 SETS(network_rec_config_shadow, R_NETWORK_REC_CONFIG, individual, discard); 1636 SETS(network_rec_config_shadow, R_NETWORK_REC_CONFIG, individual, discard);