diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2008-06-23 11:34:50 (GMT) |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-06-27 05:28:31 (GMT) |
commit | e8399fed7e9f2e76eb65852612b16732129b9f3f (patch) | |
tree | 211d70a58b1523429b530157627dc643edcf1c7d /drivers/net/ipg.c | |
parent | ecfecfb5e39165b3f7f6d93aacd268edfe7c3524 (diff) | |
download | linux-fsl-qoriq-e8399fed7e9f2e76eb65852612b16732129b9f3f.tar.xz |
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 <Bircoph@list.ru>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/ipg.c')
-rw-r--r-- | drivers/net/ipg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipg.c b/drivers/net/ipg.c index dbb77e3..2c03f4e 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 |