netfilter: nf_tables: remove assignment with no effect in chain blob builder
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Jan 2022 12:40:38 +0000 (13:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 27 Jan 2022 16:50:56 +0000 (17:50 +0100)
commitb07f413732549e5a96e891411fbb5980f2d8e5a1
tree8dc4a29072b092d98ed687cd1ee710bb9fee2a46
parenteda0cf1202acf1ef47f93d8f92d4839213431424
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>
net/netfilter/nf_tables_api.c