[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0812041538330.26947@wrl-59.cs.helsinki.fi>
Date: Thu, 4 Dec 2008 15:41:15 +0200 (EET)
From: "Ilpo Järvinen" <ilpo.jarvinen@...sinki.fi>
To: Wang Chen <wangchen@...fujitsu.com>
cc: "David S. Miller" <davem@...emloft.net>,
NETDEV <netdev@...r.kernel.org>
Subject: Re: [PATCH next] sgi-xp: Kill directly reference of netdev->priv
On Thu, 4 Dec 2008, Wang Chen wrote:
> Simply replace netdev->priv with netdev_priv().
>
> Not do compile test, because no IA64 or x86_64 box.
>
> Signed-off-by: Wang Chen <wangchen@...fujitsu.com>
> ---
> drivers/misc/sgi-xp/xpnet.c | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/misc/sgi-xp/xpnet.c b/drivers/misc/sgi-xp/xpnet.c
> index 71513b3..9e5233a 100644
> --- a/drivers/misc/sgi-xp/xpnet.c
> +++ b/drivers/misc/sgi-xp/xpnet.c
> @@ -154,7 +154,7 @@ xpnet_receive(short partid, int channel, struct xpnet_message *msg)
> void *dst;
> enum xp_retval ret;
> struct xpnet_dev_private *priv =
> - (struct xpnet_dev_private *)xpnet_device->priv;
> + (struct xpnet_dev_private *)netdev_priv(xpnet_device);
netdev_priv returns void, so these casts seem unnecessary here & other
places belwo (which I cut)...
--
i.
--
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