]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
netfilter: nf_tables: remove unused variable in nf_tables_dump_set()
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 1 Jan 2014 05:27:19 +0000 (06:27 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 3 Jan 2014 21:51:14 +0000 (22:51 +0100)
commit720e0dfa3a86de3482d82fc1d37090eba1c460eb
treeeb2eb59f0b0a0af8a6d74fde09e85c9fc0f13c52
parent14662917907ebd95119378a32d50807e4621d2be
netfilter: nf_tables: remove unused variable in nf_tables_dump_set()

The nfmsg variable is not used (except in sizeof operator which does
not care about its value) between the first and second time it is
assigned the value.  Furthermore, nlmsg_data has no side effects, so
the assignment can be safely removed.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_tables_api.c