eventdev: fix build with icc
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Tue, 17 Apr 2018 13:13:42 +0000 (14:13 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 19 Apr 2018 11:42:59 +0000 (13:42 +0200)
commit34345a9b69bbf5ccd74a3a75cf3cf102a735546a
tree625e5a308e74bb7f6f8534c733019f958b046eff
parente62f3a8a04768352bc78389d499be50c923bf6aa
eventdev: fix build with icc

ICC complains about variable being used before its value is set.
Since the variable is only assigned in the for loop,
its declaration is moved inside and is initialized.

lib/librte_eventdev/rte_event_timer_adapter.c(708): error #592:
variable "ret" is used before its value is set
        RTE_SET_USED(ret);

Fixes: 6750b21bd6af ("eventdev: add default software timer adapter")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
lib/librte_eventdev/rte_event_timer_adapter.c