Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 824621ed authored by Martin Josefsson's avatar Martin Josefsson Committed by David S. Miller
Browse files

[NETFILTER]: nf_conntrack: remove unused struct list_head from protocols



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: default avatarMartin Josefsson <gandalf@wlug.westbo.se>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
parent 3ffd5eeb
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;

+0 −3
Original line number Diff line number Diff line
@@ -16,9 +16,6 @@ struct nfattr;

struct nf_conntrack_l4proto
{
	/* Next pointer. */
	struct list_head list;

	/* L3 Protocol number. */
	u_int16_t l3proto;

+0 −1
Original line number Diff line number Diff line
@@ -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",