From 941717ffe1881156d536f59c4d3e71171c4d10e6 Mon Sep 17 00:00:00 2001 From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 21:37:54 +0100 Subject: [PATCH] pipeline: fix unused variable Coverity issue: 362855 Fixes: 75634474ca ("pipeline: add SWX instruction verifier") Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1