This change addresses the CID 455328: Uninitialized variables (UNINIT). Strictly speaking right now it should never happen, as role_mask is not zero. But that might change in future, as more test-cases will be introduced. Anyway the fix is trivial.
Coverity issue: 455328 Fixes: 70581c355d69 ("test/ring: add unit tests for soring API") Signed-off-by: Konstantin Ananyev <konstantin.anan...@huawei.com> --- app/test/test_soring_stress_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/test/test_soring_stress_impl.h b/app/test/test_soring_stress_impl.h index 9e22de98d2..015825223d 100644 --- a/app/test/test_soring_stress_impl.h +++ b/app/test/test_soring_stress_impl.h @@ -405,6 +405,8 @@ test_worker(void *arg, const char *fname, int32_t prcs) cl = rte_rdtsc_precise(); do { + rc = 0; + if ((la->stats.role_mask & ~ROLE_DEQENQ) != 0) { rc = test_worker_stages(la, lc, fname, obj, &def_elm, &loc_elm, stg_elm, prcs); -- 2.35.3