https://bugs.linaro.org/show_bug.cgi?id=2225
Bug ID: 2225
Summary: Coverity ring test issues
Product: OpenDataPlane - linux- generic reference
Version: v1.10
Hardware: Other
OS: Linux
Status: UNCONFIRMED
Severity: enhancement
Priority: ---
Component: General ODP
Assignee: lng-odp@lists.linaro.org
Reporter: bill.fischo...@linaro.org
Target Milestone: ---
The following issues are flagged by Coverity in the ring tests:
*** CID 161193: Incorrect expression (NO_EFFECT)
/platform/linux-generic/test/ring/ringtest.c: 443 in main()
437 exit(EXIT_FAILURE);
438 }
439
440 _ring_tailq_init();
441
442 num_workers = odp_cpumask_default_worker(&cpu_mask,
MAX_WORKERS);
>>> CID 161193: Incorrect expression (NO_EFFECT)
>>> Assignment operation "rarg.thrdarg.numthrds = rarg.thrdarg.numthrds"
>>> has no effect.
443 rarg.thrdarg.numthrds = rarg.thrdarg.numthrds;
444
445 rarg.thrdarg.testcase = ODP_RING_TEST_BASIC;
446
447 memset(&thr_params, 0, sizeof(thr_params));
448 thr_params.start = test_ring;
----
*** CID 161191: Control flow issues (DEADCODE)
/platform/linux-generic/test/ring/ringtest.c: 400 in test_ring()
394 break;
395
396 case ODP_RING_TEST_STRESS:
397 test_ring_stress(parg->stress_type);
398
399 if (result)
>>> CID 161191: Control flow issues (DEADCODE)
>>> Execution cannot reach this statement: "_ring_list_dump();".
400 _ring_list_dump();
401 break;
402
403 default:
404 LOG_ERR("Invalid test case [%d]\n",
parg->thrdarg.testcase);
405 result = -1;
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp