From b2a844760ec534e75bcc2dc513275cf0fed11468 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Thu, 30 Mar 2017 00:57:43 +0530 Subject: iptables: Remove unnecessary braces. Remove braces which are not required, to fix the check patch issue. The following coccinelle script was used to fix this issue. @@ expression e; expression e1; @@ if(e) -{ e1; -} Signed-off-by: Varsha Rao Signed-off-by: Pablo Neira Ayuso --- iptables/xtables-translate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'iptables/xtables-translate.c') diff --git a/iptables/xtables-translate.c b/iptables/xtables-translate.c index 00de0190..e049f24e 100644 --- a/iptables/xtables-translate.c +++ b/iptables/xtables-translate.c @@ -236,9 +236,8 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[], switch (p.command) { case CMD_APPEND: ret = 1; - if (!xlate(h, &p, &cs, &args, true, nft_rule_xlate_add)) { + if (!xlate(h, &p, &cs, &args, true, nft_rule_xlate_add)) print_ipt_cmd(argc, argv); - } break; case CMD_DELETE: break; @@ -250,9 +249,8 @@ static int do_command_xlate(struct nft_handle *h, int argc, char *argv[], break; case CMD_INSERT: ret = 1; - if (!xlate(h, &p, &cs, &args, false, nft_rule_xlate_add)) { + if (!xlate(h, &p, &cs, &args, false, nft_rule_xlate_add)) print_ipt_cmd(argc, argv); - } break; case CMD_FLUSH: if (p.chain) { -- cgit v1.2.3