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,10 +34,7 @@ static void explain(void) ...@@ -34,10 +34,7 @@ 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)
{ {
if (argc > 0) {
while (argc > 0) { while (argc > 0) {
if (strcmp(*argv, "handle") == 0) { if (strcmp(*argv, "handle") == 0) {
NEXT_ARG(); NEXT_ARG();
argc--; argv++; argc--; argv++;
...@@ -47,7 +44,6 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc ...@@ -47,7 +44,6 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc
return -1; return -1;
} }
} }
}
addattr_l(n, 1024, TCA_OPTIONS, NULL, 0); addattr_l(n, 1024, TCA_OPTIONS, NULL, 0);
return 0; return 0;
...@@ -55,7 +51,6 @@ static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struc ...@@ -55,7 +51,6 @@ 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