* [PATCH 02/08] ipg: use NULL, not zero, for pointers
@ 2008-06-23 11:34 Pekka J Enberg
2008-06-27 5:33 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Pekka J Enberg @ 2008-06-23 11:34 UTC (permalink / raw)
To: romieu; +Cc: sorbica, jesse, Bircoph, shemminger, netdev
From: Pekka Enberg <penberg@cs.helsinki.fi>
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>
---
drivers/net/ipg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6/drivers/net/ipg.c
===================================================================
--- linux-2.6.orig/drivers/net/ipg.c
+++ linux-2.6/drivers/net/ipg.c
@@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_devic
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 02/08] ipg: use NULL, not zero, for pointers
2008-06-23 11:34 [PATCH 02/08] ipg: use NULL, not zero, for pointers Pekka J Enberg
@ 2008-06-27 5:33 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2008-06-27 5:33 UTC (permalink / raw)
To: Pekka J Enberg; +Cc: romieu, sorbica, jesse, Bircoph, shemminger, netdev
Pekka J Enberg wrote:
> From: Pekka Enberg <penberg@cs.helsinki.fi>
>
> 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>
> ---
> drivers/net/ipg.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux-2.6/drivers/net/ipg.c
> ===================================================================
> --- linux-2.6.orig/drivers/net/ipg.c
> +++ linux-2.6/drivers/net/ipg.c
> @@ -1808,7 +1808,7 @@ static int ipg_nic_open(struct net_devic
> /* 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
applied 1-2 to 2.6.26
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-27 5:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-23 11:34 [PATCH 02/08] ipg: use NULL, not zero, for pointers Pekka J Enberg
2008-06-27 5:33 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).