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)
static int qfq_parse_opt(struct qdisc_util *qu, int argc, char **argv,
struct nlmsghdr *n)
{
while (argc > 0) {
if (matches(*argv, "help") == 0) {
explain();
return -1;
} else {
if (argc > 0) {
if (matches(*argv, "help") != 0)
fprintf(stderr, "What is \"%s\"?\n", *argv);
explain();
return -1;
}
argc--; argv++;
explain();
return -1;
}
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