Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Pablo Neira Ayuso
2b71e2c7 c42ba429

+1 -3
+1 -3
net/netfilter/nft_set_pipapo_avx2.c
··· 1048 1048 struct nft_pipapo_field *f, int offset, 1049 1049 const u8 *pkt, bool first, bool last) 1050 1050 { 1051 - unsigned long *lt = f->lt, bsize = f->bsize; 1051 + unsigned long bsize = f->bsize; 1052 1052 int i, ret = -1, b; 1053 - 1054 - lt += offset * NFT_PIPAPO_LONGS_PER_M256; 1055 1053 1056 1054 if (first) 1057 1055 memset(map, 0xff, bsize * sizeof(*map));