From: Pablo Neira Ayuso Date: Thu, 27 Jan 2022 12:40:38 +0000 (+0100) Subject: netfilter: nf_tables: remove assignment with no effect in chain blob builder X-Git-Tag: howlett/maple/20220722_2~1263^2~29^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b07f413732549e5a96e891411fbb5980f2d8e5a1;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Pablo Neira Ayuso --- diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c index cf454f8ca2b0..5fa16990da95 100644 --- a/net/netfilter/nf_tables_api.c +++ b/net/netfilter/nf_tables_api.c @@ -2011,7 +2011,6 @@ static void nft_last_rule(struct nft_rule_blob *blob, const void *ptr) prule = (struct nft_rule_dp *)ptr; prule->is_last = 1; - ptr += offsetof(struct nft_rule_dp, data); /* blob size does not include the trailer rule */ }