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

Commit 4004d5c3 authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso
Browse files

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: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent b9d80f83
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ static void nft_lookup_eval(const struct nft_expr *expr,
		return;
	}

	if (found && set->flags & NFT_SET_MAP)
	if (set->flags & NFT_SET_MAP)
		nft_data_copy(&regs->data[priv->dreg],
			      nft_set_ext_data(ext), set->dlen);