All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH]  dead code elimination in ip6_queue.c
@ 2003-03-15 18:01 Stephane Ouellette
  2003-03-16  0:54 ` James Morris
  2003-03-26 14:45 ` Harald Welte
  0 siblings, 2 replies; 6+ messages in thread
From: Stephane Ouellette @ 2003-03-15 18:01 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]

Folks,

   the following patch removes dead code in ip6_queue.c

Stephane Ouellette.


[-- Attachment #2: ip6_queue.c.patch --]
[-- Type: text/plain, Size: 443 bytes --]

--- linux-2.4.21-pre5-ac3/net/ipv6/netfilter/ip6_queue.c	Fri Mar 14 15:16:44 2003
+++ linux-2.4.21-pre5-ac3-fixed/net/ipv6/netfilter/ip6_queue.c	Sat Mar 15 12:58:50 2003
@@ -265,8 +265,6 @@
 	return skb;
 
 nlmsg_failure:
-	if (skb)
-		kfree_skb(skb);
 	*errp = -EINVAL;
 	printk(KERN_ERR "ip6_queue: error creating packet message\n");
 	return NULL;
@@ -730,7 +728,6 @@
 
 static int __init init(void)
 {
-	
 	return init_or_cleanup(1);
 }
 

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [PATCH] dead code elimination in ip6_queue.c
@ 2003-03-26 19:38 Stephane Ouellette
  2003-03-27 13:08 ` Harald Welte
  0 siblings, 1 reply; 6+ messages in thread
From: Stephane Ouellette @ 2003-03-26 19:38 UTC (permalink / raw)
  To: netfilter-devel; +Cc: laforge, jmorris

Harald,

     I have been notified by James Morris that my patch is incorrect 
because of a macro named NLMSG_PUT() which uses the code I have removed 
in my patch.  There is a goto statement inside this macro.

Regards,

Stephane Ouellette

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-03-27 13:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-15 18:01 [PATCH] dead code elimination in ip6_queue.c Stephane Ouellette
2003-03-16  0:54 ` James Morris
2003-03-17  4:47   ` Stephane Ouellette
2003-03-26 14:45 ` Harald Welte
  -- strict thread matches above, loose matches on Subject: below --
2003-03-26 19:38 Stephane Ouellette
2003-03-27 13:08 ` Harald Welte

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.