[NETFILTER]: nf_conntrack: remove unused struct list_head from protocols
authorMartin Josefsson <gandalf@wlug.westbo.se>
Wed, 29 Nov 2006 01:35:11 +0000 (02:35 +0100)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 3 Dec 2006 05:31:13 +0000 (21:31 -0800)
Remove unused struct list_head from struct nf_conntrack_l3proto and
nf_conntrack_l4proto as all protocols are kept in arrays, not linked
lists.

Signed-off-by: Martin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nf_conntrack_l3proto.h
include/net/netfilter/nf_conntrack_l4proto.h
net/ipv4/netfilter/nf_conntrack_proto_icmp.c

index 11b4b29..6364df0 100644 (file)
@@ -18,9 +18,6 @@ struct nfattr;
 
 struct nf_conntrack_l3proto
 {
-       /* Next pointer. */
-       struct list_head list;
-
        /* L3 Protocol Family number. ex) PF_INET */
        u_int16_t l3proto;
 
index 5193e48..c22804a 100644 (file)
@@ -16,9 +16,6 @@ struct nfattr;
 
 struct nf_conntrack_l4proto
 {
-       /* Next pointer. */
-       struct list_head list;
-
        /* L3 Protocol number. */
        u_int16_t l3proto;
 
index 08223a5..95fc22b 100644 (file)
@@ -323,7 +323,6 @@ static int icmp_nfattr_to_tuple(struct nfattr *tb[],
 
 struct nf_conntrack_l4proto nf_conntrack_l4proto_icmp =
 {
-       .list                   = { NULL, NULL },
        .l3proto                = PF_INET,
        .l4proto                = IPPROTO_ICMP,
        .name                   = "icmp",