pipeline: fix dead code
PATCH 1/1 pipeline: fix dead code
Fix minor dead code issue reported by Coverity.
Coverity issue: 373653
Fixes: e9d870 ("pipeline: add SWX pipeline tables")
Signed-off-by Yogesh Jangra <[email protected]>
--- lib/pipeline/rte_swx_pipeline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
lib/pipeline/rte_swx_pipeline.c +2 -1
@@ -7387,7 +7387,8 @@ struct_field_parse(struct rte_swx_pipeline *p,/* Memory allocation. */ t =calloc (1 ,sizeof (struct table )); -CHECK (t,ENOMEM ); +if (!t) + goto nomem; t->fields =calloc (params->n_fields,sizeof (struct match_field ));if (!t->fields)
Signature · 1 line
1.8.3.1
Thomas Monjalon
Applied28/10/2021 00:15, Yogesh Jangra:
Quoted 7 lines
Fix minor dead code issue reported by Coverity.
Coverity issue: 373653
Fixes: e9d870 ("pipeline: add SWX pipeline tables")Signed-off-by Yogesh Jangra <[email protected]>
Applied, thanks