pipeline: fix argument check

Coverity issue: 362789
Fixes: 3ca60ceed7 ("pipeline: add SWX pipeline specification file")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Cristian Dumitrescu 2020-10-06 21:37:51 +01:00 committed by David Marchand
parent faa4536684
commit c0c9dcef88

View File

@ -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)