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 <yogesh.jangra@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
parent
5dbbc2ab4a
commit
2ce3ccbe44
@ -7387,7 +7387,8 @@ rte_swx_pipeline_table_config(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)
|
||||
|
Loading…
Reference in New Issue
Block a user