]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Fold nftnl_rule_list_chain_save() into caller
authorPhil Sutter <phil@nwl.cc>
Wed, 8 Jul 2020 21:03:12 +0000 (23:03 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 21 Aug 2020 17:01:00 +0000 (19:01 +0200)
commitc330a2198e86d757e1d553f7e1d64baa2f10d7a9
treed3fc64a38fad497549fc632ac7ff349e11c66a76
parent79ada320d0cca026f199ae8f39737c1e95991615
nft: Fold nftnl_rule_list_chain_save() into caller

Existence of this function was mostly code-duplication: Caller already
branches depending on whether 'chain' is NULL or not and even does the
chain list lookup.

While being at it, simplify __nftnl_rule_list_chain_save function name a
bit now that the non-prefixed name is gone.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft.c