Commit e8399fed authored by Pekka Enberg's avatar Pekka Enberg Committed by Jeff Garzik

ipg: use NULL, not zero, for pointers

Fixes a sparse warning in a code block that's hidden under JUMBO_FRAME #ifdef.
Tested-by: default avatarAndrew Savchenko <Bircoph@list.ru>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent ecfecfb5
...@@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_device *dev) ...@@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_device *dev)
/* initialize JUMBO Frame control variable */ /* initialize JUMBO Frame control variable */
sp->jumbo.found_start = 0; sp->jumbo.found_start = 0;
sp->jumbo.current_size = 0; sp->jumbo.current_size = 0;
sp->jumbo.skb = 0; sp->jumbo.skb = NULL;
dev->mtu = IPG_TXFRAG_SIZE; dev->mtu = IPG_TXFRAG_SIZE;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment