Skip to content

Commit

Permalink
ipg: use NULL, not zero, for pointers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pekka Enberg authored and Jeff Garzik committed Jun 27, 2008
1 parent ecfecfb commit e8399fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ipg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e8399fe

Please sign in to comment.