Skip to content

Commit

Permalink
netfilter: nft_set_pipapo_avx2: remove redundant pointer lt
Browse files Browse the repository at this point in the history
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
  • Loading branch information
Colin Ian King authored and Pablo Neira Ayuso committed Dec 24, 2021
1 parent c42ba42 commit 2b71e2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/netfilter/nft_set_pipapo_avx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1048,11 +1048,9 @@ static int nft_pipapo_avx2_lookup_slow(unsigned long *map, unsigned long *fill,
struct nft_pipapo_field *f, int offset,
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;

lt += offset * NFT_PIPAPO_LONGS_PER_M256;

if (first)
memset(map, 0xff, bsize * sizeof(*map));

Expand Down

0 comments on commit 2b71e2c

Please sign in to comment.