From: Daniel Borkmann Date: Sat, 9 May 2015 20:59:17 +0000 (+0200) Subject: tc: minor cleanup on ingress X-Git-Tag: v4.1.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec6f5abcea541da9ef5eec9491d833e6d3950f69;p=thirdparty%2Fiproute2.git tc: minor cleanup on ingress Fix whitespacing and remove the unnecessary condition. Signed-off-by: Daniel Borkmann --- diff --git a/tc/q_ingress.c b/tc/q_ingress.c index ba58e722f..30b24e7de 100644 --- a/tc/q_ingress.c +++ b/tc/q_ingress.c @@ -34,18 +34,14 @@ static void explain(void) static int ingress_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) { - - if (argc > 0) { - while (argc > 0) { - - if (strcmp(*argv, "handle") == 0) { - NEXT_ARG(); - argc--; argv++; - } else { - fprintf(stderr, "What is \"%s\"?\n", *argv); - explain(); - return -1; - } + while (argc > 0) { + if (strcmp(*argv, "handle") == 0) { + NEXT_ARG(); + argc--; argv++; + } else { + 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 static int ingress_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) { - - fprintf(f, "---------------- "); + fprintf(f, "---------------- "); return 0; }