Commit 037660b3 authored by Stephen Hemminger's avatar Stephen Hemminger

qfq: fix parse_opt dead code

Fix Coverity warning from dead code.
parent 8fe98398
...@@ -38,16 +38,11 @@ static void explain_class(void) ...@@ -38,16 +38,11 @@ static void explain_class(void)
static int qfq_parse_opt(struct qdisc_util *qu, int argc, char **argv, static int qfq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n) struct nlmsghdr *n)
{ {
while (argc > 0) { if (argc > 0) {
if (matches(*argv, "help") == 0) { if (matches(*argv, "help") != 0)
explain();
return -1;
} else {
fprintf(stderr, "What is \"%s\"?\n", *argv); fprintf(stderr, "What is \"%s\"?\n", *argv);
explain(); explain();
return -1; return -1;
}
argc--; argv++;
} }
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