netfilter: nf_tables: remove assignment with no effect in chain blob builder
Subsystems (2)
Pablo Neira Ayuso
maintainerPATCH 1/1 netfilter: nf_tables: remove assignment with no effect in chain blob builder
cppcheck possible warnings:
Quoted 1 line
Quoted 1 line
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 <[email protected]>
Signed-off-by Pablo Neira Ayuso <[email protected]>
--- net/netfilter/nf_tables_api.c | 1 - 1 file changed, 1 deletion(-)
net/netfilter/nf_tables_api.c +0 -1
@@ -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 */ }
Signature · 1 line
2.30.2