From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 20:37:54 +0000 (+0100) Subject: pipeline: fix unused variable X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=941717ffe1881156d536f59c4d3e71171c4d10e6;p=dpdk.git pipeline: fix unused variable Coverity issue: 362855 Fixes: 75634474ca ("pipeline: add SWX instruction verifier") Signed-off-by: Cristian Dumitrescu --- diff --git a/lib/librte_pipeline/rte_swx_pipeline.c b/lib/librte_pipeline/rte_swx_pipeline.c index 8b7ff56f6f..a4d072d6d2 100644 --- a/lib/librte_pipeline/rte_swx_pipeline.c +++ b/lib/librte_pipeline/rte_swx_pipeline.c @@ -5671,7 +5671,7 @@ instr_verify(struct rte_swx_pipeline *p __rte_unused, for (i = 0; i < n_instructions; i++) { type = instr[i].type; - if (instr[i].type == INSTR_TX) + if (type == INSTR_TX) break; } CHECK(i < n_instructions, EINVAL);