From: Stephane Ouellette <ouellettes@videotron.ca>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] Dead code elimination in ip_conntrack_core.c
Date: Sat, 15 Mar 2003 12:30:04 -0500 [thread overview]
Message-ID: <3E73631C.1060102@videotron.ca> (raw)
[-- Attachment #1: Type: text/plain, Size: 212 bytes --]
List members,
the following cosmetic patch removes dead code in
ip_conntrack_init() if CONFIG_SYSCTL is not defined.
The patch applies against a plain 2.4.21-pre5-ac3 kernel.
Regards,
Stephane Ouellette
[-- Attachment #2: ip_conntrack_core.c.patch --]
[-- Type: text/plain, Size: 439 bytes --]
--- linux-2.4.21-pre5-ac3/net/ipv4/netfilter/ip_conntrack_core.c Sat Mar 15 12:16:55 2003
+++ linux-2.4.21-pre5-ac3-fixed/net/ipv4/netfilter/ip_conntrack_core.c Sat Mar 15 12:23:34 2003
@@ -1478,8 +1478,10 @@
ip_ct_attach = ip_conntrack_attach;
return ret;
+#ifdef CONFIG_SYSCTL
err_free_ct_cachep:
kmem_cache_destroy(ip_conntrack_cachep);
+#endif /*CONFIG_SYSCTL*/
err_free_hash:
vfree(ip_conntrack_hash);
err_unreg_sockopt:
next reply other threads:[~2003-03-15 17:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-15 17:30 Stephane Ouellette [this message]
2003-03-26 14:48 ` [PATCH] Dead code elimination in ip_conntrack_core.c Harald Welte
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E73631C.1060102@videotron.ca \
--to=ouellettes@videotron.ca \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.