netfilter: nft_set_pipapo_avx2: remove redundant pointer lt
authorColin Ian King <colin.i.king@gmail.com>
Tue, 21 Dec 2021 19:37:57 +0000 (19:37 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Dec 2021 15:58:17 +0000 (16:58 +0100)
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>
net/netfilter/nft_set_pipapo_avx2.c

index 6f4116e729581fd1f3bb418b124908cf38159afc..52e0d026d30ad2c92f63f589727cdc0b39d7092b 100644 (file)
@@ -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));