From 7a1026f59c101a67233c65dd5ef9b0ae15945ca5 Mon Sep 17 00:00:00 2001 From: Tomasz Bursztyka Date: Wed, 7 Aug 2013 11:31:35 +0300 Subject: nft: Remove useless test on rulenum in nft_rule_list() Rulenum is already handled before the loop, making this test useless. Signed-off-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- iptables/nft.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'iptables/nft.c') diff --git a/iptables/nft.c b/iptables/nft.c index a87d3031..15c50a75 100644 --- a/iptables/nft.c +++ b/iptables/nft.c @@ -2537,10 +2537,9 @@ int nft_rule_list(struct nft_handle *h, const char *chain, const char *table, if (found) printf("\n"); - if (!rulenum) { - print_header(format, chain_name, policy_name[policy], + print_header(format, chain_name, policy_name[policy], &ctrs, basechain, refs); - } + __nft_rule_list(h, chain_name, table, rulenum, format, print_firewall); -- cgit v1.2.3