app/eventdev: fix possible uninitialized variable
authorThomas Monjalon <thomas@monjalon.net>
Fri, 16 Nov 2018 16:58:54 +0000 (17:58 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Nov 2018 00:43:47 +0000 (01:43 +0100)
commitff0633d2b1b9457261528de739da0f4c0fe83b32
treeb784f95257f0b79393cfc6d6147dfa0ef5b88fbf
parent6b8d9a4b4c611f3319c639145ab21574a21944b9
app/eventdev: fix possible uninitialized variable

When compiling with -O1, this error can appear:
app/test-eventdev/test_pipeline_common.c:332:6: error:
‘ret’ may be used uninitialized in this function

If there is no device, then ret is returned without being initialized.
It is fixed by setting 0 as initial value.

Fixes: 032a965a8f1d ("app/eventdev: support Tx adapter")

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
app/test-eventdev/test_pipeline_common.c