aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/zd1201.c
diff options
context:
space:
mode:
authorJiri Pirko <jpirko@redhat.com>2010-02-07 23:30:35 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-12 14:38:58 -0500
commit4cd24eaf0c6ee7f0242e34ee77ec899f255e66b5 (patch)
tree99f57f6374a58022e1e5ed1cbc12699288c7eae1 /drivers/net/wireless/zd1201.c
parent8e5574211d96c0552f84c757718475fdb4021be7 (diff)
net: use netdev_mc_count and netdev_mc_empty when appropriate
This patch replaces dev->mc_count in all drivers (hopefully I didn't miss anything). Used spatch and did small tweaks and conding style changes when it was suitable. Jirka Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/zd1201.c')
-rw-r--r--drivers/net/wireless/zd1201.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/zd1201.c b/drivers/net/wireless/zd1201.c
index 33c8be7ec8e6..5d2b52f4717f 100644
--- a/drivers/net/wireless/zd1201.c
+++ b/drivers/net/wireless/zd1201.c
@@ -879,16 +879,15 @@ static void zd1201_set_multicast(struct net_device *dev)
879 unsigned char reqbuf[ETH_ALEN*ZD1201_MAXMULTI]; 879 unsigned char reqbuf[ETH_ALEN*ZD1201_MAXMULTI];
880 int i; 880 int i;
881 881
882 if (dev->mc_count > ZD1201_MAXMULTI) 882 if (netdev_mc_count(dev) > ZD1201_MAXMULTI)
883 return; 883 return;
884 884
885 for (i=0; i<dev->mc_count; i++) { 885 for (i=0; i<netdev_mc_count(dev); i++) {
886 memcpy(reqbuf+i*ETH_ALEN, mc->dmi_addr, ETH_ALEN); 886 memcpy(reqbuf+i*ETH_ALEN, mc->dmi_addr, ETH_ALEN);
887 mc = mc->next; 887 mc = mc->next;
888 } 888 }
889 zd1201_setconfig(zd, ZD1201_RID_CNFGROUPADDRESS, reqbuf, 889 zd1201_setconfig(zd, ZD1201_RID_CNFGROUPADDRESS, reqbuf,
890 dev->mc_count*ETH_ALEN, 0); 890 netdev_mc_count(dev) * ETH_ALEN, 0);
891
892} 891}
893 892
894static int zd1201_config_commit(struct net_device *dev, 893static int zd1201_config_commit(struct net_device *dev,