diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-09-11 03:31:11 +0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-09-17 17:11:14 +0300 |
commit | 4430b897a2063c44462e8cea3293ebb5851d9cfd (patch) | |
tree | bc52e66c90a377314f38fc6bc6dc3a532d12306b /net/netfilter/nft_ct.c | |
parent | 7052ba408019e49301a6ebec9866046838a5b1e2 (diff) | |
download | linux-4430b897a2063c44462e8cea3293ebb5851d9cfd.tar.xz |
netfilter: cttimeout: remove superfluous check on layer 4 netlink functions
We assume they are always set accordingly since a874752a10da
("netfilter: conntrack: timeout interface depend on
CONFIG_NF_CONNTRACK_TIMEOUT"), so we can get rid of this checks.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nft_ct.c')
-rw-r--r-- | net/netfilter/nft_ct.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/netfilter/nft_ct.c b/net/netfilter/nft_ct.c index 5dd87748afa8..17ae5059c312 100644 --- a/net/netfilter/nft_ct.c +++ b/net/netfilter/nft_ct.c @@ -776,9 +776,6 @@ nft_ct_timeout_parse_policy(void *timeouts, struct nlattr **tb; int ret = 0; - if (!l4proto->ctnl_timeout.nlattr_to_obj) - return 0; - tb = kcalloc(l4proto->ctnl_timeout.nlattr_max + 1, sizeof(*tb), GFP_KERNEL); |