Patchwork [next] eepro: fix netdev_mc_count conversion

login
register
mail settings
Submitter Alexander Beregalov
Date Feb. 21, 2010, 2:37 a.m.
Message ID <1266719836-22416-1-git-send-email-a.beregalov@gmail.com>
Download mbox | patch
Permalink /patch/45943/
State Accepted
Delegated to: David Miller
Headers show

Comments

Alexander Beregalov - Feb. 21, 2010, 2:37 a.m.
Fix commit 4cd24eaf0 (net: use netdev_mc_count and netdev_mc_empty when
appropriate)

Cc: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
---
 drivers/net/eepro.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Feb. 21, 2010, 2:48 a.m.
From: Alexander Beregalov <a.beregalov@gmail.com>
Date: Sun, 21 Feb 2010 05:37:16 +0300

> Fix commit 4cd24eaf0 (net: use netdev_mc_count and netdev_mc_empty when
> appropriate)
> 
> Cc: Jiri Pirko <jpirko@redhat.com>
> Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>

Applied, thanks Alexander.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/net/eepro.c b/drivers/net/eepro.c
index 488bc13..5f73ab2 100644
--- a/drivers/net/eepro.c
+++ b/drivers/net/eepro.c
@@ -1288,7 +1288,7 @@  set_multicast_list(struct net_device *dev)
 	short ioaddr = dev->base_addr;
 	unsigned short mode;
 	struct dev_mc_list *dmi=dev->mc_list;
-	int mc_count = mc_count;
+	int mc_count = netdev_mc_count(dev);
 
 	if (dev->flags&(IFF_ALLMULTI|IFF_PROMISC) || mc_count > 63)
 	{