ipg: use NULL, not zero, for pointers
authorPekka Enberg <penberg@cs.helsinki.fi>
Mon, 23 Jun 2008 11:34:50 +0000 (14:34 +0300)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 27 Jun 2008 05:28:31 +0000 (01:28 -0400)
Fixes a sparse warning in a code block that's hidden under JUMBO_FRAME #ifdef.

Tested-by: Andrew Savchenko <Bircoph@list.ru>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ipg.c

index dbb77e34b31d30bbe349bc5865e88e3866f76f08..2c03f4e2ccc44427206e8a868412be0bb92fac49 100644 (file)
@@ -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