Commit 2b71e2c7 authored by Colin Ian King's avatar Colin Ian King Committed by Pablo Neira Ayuso

netfilter: nft_set_pipapo_avx2: remove redundant pointer lt

The pointer lt is being assigned a value and then later
updated but that value is never read. The pointer is
redundant and can be removed.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent c42ba429
...@@ -1048,11 +1048,9 @@ static int nft_pipapo_avx2_lookup_slow(unsigned long *map, unsigned long *fill, ...@@ -1048,11 +1048,9 @@ static int nft_pipapo_avx2_lookup_slow(unsigned long *map, unsigned long *fill,
struct nft_pipapo_field *f, int offset, struct nft_pipapo_field *f, int offset,
const u8 *pkt, bool first, bool last) const u8 *pkt, bool first, bool last)
{ {
unsigned long *lt = f->lt, bsize = f->bsize; unsigned long bsize = f->bsize;
int i, ret = -1, b; int i, ret = -1, b;
lt += offset * NFT_PIPAPO_LONGS_PER_M256;
if (first) if (first)
memset(map, 0xff, bsize * sizeof(*map)); memset(map, 0xff, bsize * sizeof(*map));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment