diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2021-12-21 19:37:57 +0000 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2021-12-24 16:58:17 +0100 |
commit | 2b71e2c7b56cabe0aef95b79af98da921b87bc30 (patch) | |
tree | 419fe18096e78758e843c95214479aba67ccee83 /net | |
parent | c42ba4290b2147aa033d17f22151494515655d77 (diff) | |
download | linux-2b71e2c7b56cabe0aef95b79af98da921b87bc30.tar.gz linux-2b71e2c7b56cabe0aef95b79af98da921b87bc30.tar.bz2 linux-2b71e2c7b56cabe0aef95b79af98da921b87bc30.zip |
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/netfilter/nft_set_pipapo_avx2.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/netfilter/nft_set_pipapo_avx2.c b/net/netfilter/nft_set_pipapo_avx2.c index 6f4116e72958..52e0d026d30a 100644 --- a/net/netfilter/nft_set_pipapo_avx2.c +++ b/net/netfilter/nft_set_pipapo_avx2.c @@ -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)); |