eventdev: fix build
authorFerruh Yigit <ferruh.yigit@intel.com>
Tue, 9 Oct 2018 10:13:22 +0000 (11:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 10 Oct 2018 19:40:40 +0000 (21:40 +0200)
commit850716bc57c0ebb992b8455238a71adb0fd9fc1e
tree12f6331464a22049f270b65dd15deed035fe8954
parent5f73c2670f1ea210ac536bb22422136030b86f37
eventdev: fix build

build error:
.../lib/librte_eventdev/rte_event_eth_tx_adapter.c:
  In function ‘txa_service_queue_del’:
.../lib/librte_eventdev/rte_event_eth_tx_adapter.c:800:7:
  error: ‘ret’ may be used uninitialized in this function
  [-Werror=maybe-uninitialized]
compilation terminated due to -Wfatal-errors.

https://mails.dpdk.org/archives/test-report/2018-October/065919.html

'ret' may be used uninitialized when 'dev->data->nb_tx_queues' is 0,
although this is not a practical value, initialize 'ret' to cover this
case.

Fixes: a3bbf2e09756 ("eventdev: add eth Tx adapter implementation")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eventdev/rte_event_eth_tx_adapter.c