Commit ec6f5abc authored by Daniel Borkmann's avatar Daniel Borkmann Committed by Stephen Hemminger

tc: minor cleanup on ingress

Fix whitespacing and remove the unnecessary condition.
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
parent 3bf5445c
...@@ -34,18 +34,14 @@ static void explain(void) ...@@ -34,18 +34,14 @@ static void explain(void)
static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
{ {
while (argc > 0) {
if (argc > 0) { if (strcmp(*argv, "handle") == 0) {
while (argc > 0) { NEXT_ARG();
argc--; argv++;
if (strcmp(*argv, "handle") == 0) { } else {
NEXT_ARG(); fprintf(stderr, "What is \"%s\"?\n", *argv);
argc--; argv++; explain();
} else { return -1;
fprintf(stderr, "What is \"%s\"?\n", *argv);
explain();
return -1;
}
} }
} }
...@@ -55,8 +51,7 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc ...@@ -55,8 +51,7 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc
static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
{ {
fprintf(f, "---------------- ");
fprintf(f, "---------------- ");
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment