• kirjanov@gmail.com's avatar
    greth: some driver cleanups · 6e03718c
    kirjanov@gmail.com authored
    On Fri, Feb 19, 2010 at 13:51 +0100, Jiri Pirko wrote:
    >
    > <snip>
    > >>@@ -1031,7 +1029,7 @@ static void greth_set_multicast_list(struct net_device *dev)
    > >> 			return;
    > >> 		}
    > >>
    > >>-		if (dev->mc_count == 0) {
    > >>+		if (!netdev_mc_count(dev)) {
    > also please use netdev_mc_empty() here.
    Some driver cleanups:
    * convert to use phy_find_first/phy_direct_connect
    * convert to use netdev_mc_* helpers
    * fixed missing validate_addr hook
    * removed netdev_priv castings
    Signed-off-by: default avatarDenis Kirjanov <kirjanov@gmail.com>
    Reviewed-by: default avatarJiri Pirko <jpirko@redhat.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6e03718c
greth.c 38.3 KB