From: Zhihong Peng Date: Wed, 20 Oct 2021 07:46:42 +0000 (+0800) Subject: pipeline: fix build with ASan X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=84f5ac9418ea9995975b30fa4ea57018f9618fc1;p=dpdk.git 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 Signed-off-by: Zhihong Peng Acked-by: Cristian Dumitrescu --- diff --git a/lib/pipeline/rte_swx_pipeline.c b/lib/pipeline/rte_swx_pipeline.c index 5e089fb72b..1afaffefd4 100644 --- a/lib/pipeline/rte_swx_pipeline.c +++ b/lib/pipeline/rte_swx_pipeline.c @@ -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 *