From: Fan Zhang Date: Mon, 16 Apr 2018 10:58:20 +0000 (+0100) Subject: examples/ip_pipeline: remove dead code in table command X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=61e41fb6e790de3899a48fcc54f7c9edd20f3a64;p=dpdk.git examples/ip_pipeline: remove dead code in table command Coverity issue: 272567 Fixes: d75c371e9b46 ("examples/ip_pipeline: add pipeline object") Signed-off-by: Fan Zhang Reviewed-by: Jasvinder Singh --- diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index 2f30a6d01d..c9587f5661 100644 --- a/examples/ip_pipeline/cli.c +++ b/examples/ip_pipeline/cli.c @@ -1893,12 +1893,6 @@ cmd_pipeline_table(char **tokens, t0 += 6; } else if (strcmp(tokens[t0], "stub") == 0) { - if (n_tokens < t0 + 1) { - snprintf(out, out_size, MSG_ARG_MISMATCH, - "pipeline table stub"); - return; - } - p.match_type = TABLE_STUB; t0 += 1;