netfilter: nft_lookup: remove superfluous element found check
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 20 Sep 2016 16:22:46 +0000 (18:22 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 23 Sep 2016 07:30:48 +0000 (09:30 +0200)
commit4004d5c374dabcbce201e16442e4596b764cc60b
tree20ef28156804c3c83ccc56e215b268d12e995e45
parentb9d80f83bf8c3485ae53a4f3a715363d764bb0e4
netfilter: nft_lookup: remove superfluous element found check

We already checked for !found just a bit before:

        if (!found) {
                regs->verdict.code = NFT_BREAK;
                return;
        }

        if (found && set->flags & NFT_SET_MAP)
            ^^^^^

So this redundant check can just go away.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_lookup.c