netfilter: conntrack: use NFPROTO_MAX to size array
authorFlorian Westphal <fw@strlen.de>
Wed, 14 Jun 2017 09:54:07 +0000 (11:54 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 19 Jun 2017 17:20:49 +0000 (19:20 +0200)
commitb7b5fda4686874c9b9b8c27ba9d57a8534f48a70
tree43d44d0b5b63e38d7cb627dd6e0ad808150afbba
parentd53e3fc3906c7fe82ff436e889c8416649268007
netfilter: conntrack: use NFPROTO_MAX to size array

We don't support anything larger than NFPROTO_MAX, so we can shrink this a bit:

     text data  dec  hex filename
old: 8259 1096 9355 248b net/netfilter/nf_conntrack_proto.o
new: 8259  624 8883 22b3 net/netfilter/nf_conntrack_proto.o

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l3proto.h
net/netfilter/nf_conntrack_proto.c