Skip to content

Commit b07f413

Browse files
committed
netfilter: nf_tables: remove assignment with no effect in chain blob builder
cppcheck possible warnings: >> net/netfilter/nf_tables_api.c:2014:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] ptr += offsetof(struct nft_rule_dp, data); ^ Reported-by: kernel test robot <yujie.liu@intel.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent eda0cf1 commit b07f413

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2011,7 +2011,6 @@ static void nft_last_rule(struct nft_rule_blob *blob, const void *ptr)
20112011

20122012
prule = (struct nft_rule_dp *)ptr;
20132013
prule->is_last = 1;
2014-
ptr += offsetof(struct nft_rule_dp, data);
20152014
/* blob size does not include the trailer rule */
20162015
}
20172016

0 commit comments

Comments
 (0)