[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20081208153218.GA3788@x200.localdomain>
Date: Mon, 8 Dec 2008 18:32:18 +0300
From: Alexey Dobriyan <adobriyan@...il.com>
To: Jianjun Kong <jianjun@...ux.org>
Cc: "David S. Miller" <davem@...emloft.net>,
netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH] net: cleanup for net/core/dev.c
On Mon, Dec 08, 2008 at 10:52:14PM +0800, Jianjun Kong wrote:
> - if (sizeof_priv) {
> - dev->priv = ((char *)dev +
> - ((sizeof(struct net_device) + NETDEV_ALIGN_CONST)
> - & ~NETDEV_ALIGN_CONST));
> - }
> + if (sizeof_priv)
> + dev->priv = netdev_priv(dev);
If I understood all of this correctly, ->priv is going away, so there is
no point in changing it's initialisation.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists