From: Pekka Enberg Date: Mon, 23 Jun 2008 11:34:50 +0000 (+0300) Subject: ipg: use NULL, not zero, for pointers X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e8399fed7e9f2e76eb65852612b16732129b9f3f;p=openwrt%2Fstaging%2Fblogic.git ipg: use NULL, not zero, for pointers Fixes a sparse warning in a code block that's hidden under JUMBO_FRAME #ifdef. Tested-by: Andrew Savchenko Signed-off-by: Pekka Enberg Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index dbb77e34b31d..2c03f4e2ccc4 100644 --- a/drivers/net/ipg.c +++ b/drivers/net/ipg.c @@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_device *dev) /* 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