tc: m_xt: Get rid of one indentation level in parse_ipt()

Signed-off-by: Phil Sutter <phil@nwl.cc>
This commit is contained in:
Phil Sutter 2016-06-10 13:42:03 +02:00 committed by Stephen Hemminger
parent f1a7c7d830
commit b45f9141c2
1 changed files with 48 additions and 49 deletions

View File

@ -298,6 +298,7 @@ static int parse_ipt(struct action_util *a, int *argc_p,
static int static int
print_ipt(struct action_util *au, FILE * f, struct rtattr *arg) print_ipt(struct action_util *au, FILE * f, struct rtattr *arg)
{ {
struct xtables_target *m;
struct rtattr *tb[TCA_IPT_MAX + 1]; struct rtattr *tb[TCA_IPT_MAX + 1];
struct xt_entry_target *t = NULL; struct xt_entry_target *t = NULL;
struct option *opts = NULL; struct option *opts = NULL;
@ -333,8 +334,7 @@ print_ipt(struct action_util *au, FILE * f, struct rtattr *arg)
if (tb[TCA_IPT_TARG] == NULL) { if (tb[TCA_IPT_TARG] == NULL) {
fprintf(f, "\t[NULL ipt target parameters ]\n"); fprintf(f, "\t[NULL ipt target parameters ]\n");
return -1; return -1;
} else { }
struct xtables_target *m = NULL;
t = RTA_DATA(tb[TCA_IPT_TARG]); t = RTA_DATA(tb[TCA_IPT_TARG]);
m = xtables_find_target(t->u.user.name, XTF_TRY_LOAD); m = xtables_find_target(t->u.user.name, XTF_TRY_LOAD);
@ -388,7 +388,6 @@ print_ipt(struct action_util *au, FILE * f, struct rtattr *arg)
} }
fprintf(f, "\n"); fprintf(f, "\n");
}
xtables_free_opts(1); xtables_free_opts(1);
return 0; return 0;