pipeline: fix build with ASan

Code changes to avoid the following build error:
"Control reaches end of non-void function".

Signed-off-by: Xueqin Lin <xueqin.lin@intel.com>
Signed-off-by: Zhihong Peng <zhihongx.peng@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Zhihong Peng 2021-10-20 15:46:42 +08:00 committed by David Marchand
parent eb89595d45
commit 84f5ac9418

View File

@ -4642,7 +4642,7 @@ instr_meter_translate(struct rte_swx_pipeline *p,
return 0;
}
CHECK(0, EINVAL);
return -EINVAL;
}
static inline void
@ -5937,7 +5937,7 @@ instr_translate(struct rte_swx_pipeline *p,
instr,
data);
CHECK(0, EINVAL);
return -EINVAL;
}
static struct instruction_data *