[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0806231434300.23716@sbz-30.cs.Helsinki.FI>
Date: Mon, 23 Jun 2008 14:34:50 +0300 (EEST)
From: Pekka J Enberg <penberg@...helsinki.fi>
To: romieu@...zoreil.com
cc: sorbica@...lus.com.tw, jesse@...lus.com.tw, Bircoph@...t.ru,
shemminger@...tta.com, netdev@...r.kernel.org
Subject: [PATCH 02/08] ipg: use NULL, not zero, for pointers
From: Pekka Enberg <penberg@...helsinki.fi>
Fixes a sparse warning in a code block that's hidden under JUMBO_FRAME #ifdef.
Tested-by: Andrew Savchenko <Bircoph@...t.ru>
Signed-off-by: Pekka Enberg <penberg@...helsinki.fi>
---
drivers/net/ipg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/ipg.c
===================================================================
--- linux-2.6.orig/drivers/net/ipg.c
+++ linux-2.6/drivers/net/ipg.c
@@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_devic
/* initialize JUMBO Frame control variable */
sp->jumbo.found_start = 0;
sp->jumbo.current_size = 0;
- sp->jumbo.skb = 0;
+ sp->jumbo.skb = NULL;
dev->mtu = IPG_TXFRAG_SIZE;
#endif
--
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