From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 20:37:51 +0000 (+0100) Subject: pipeline: fix argument check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c0c9dcef88d94fd8320068316a10dfab3d289887;p=dpdk.git pipeline: fix argument check Coverity issue: 362789 Fixes: 3ca60ceed7 ("pipeline: add SWX pipeline specification file") Signed-off-by: Cristian Dumitrescu --- diff --git a/lib/librte_pipeline/rte_swx_pipeline_spec.c b/lib/librte_pipeline/rte_swx_pipeline_spec.c index 95de8f983d..06e1ab4380 100644 --- a/lib/librte_pipeline/rte_swx_pipeline_spec.c +++ b/lib/librte_pipeline/rte_swx_pipeline_spec.c @@ -1064,7 +1064,7 @@ rte_swx_pipeline_build_from_spec(struct rte_swx_pipeline *p, goto error; } - if (!p) { + if (!spec) { if (err_line) *err_line = 0; if (err_msg)