]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf9e614e8bba4fda5137b964356090a11c1ceab3f
tree8dc4a29072b092d98ed687cd1ee710bb9fee2a46
parent6c480cfe8a712ccf9e5dd4bd03d6bc6b2b1a1e0d
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