stack: fix uninitialized variable
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 25 Sep 2020 05:00:50 +0000 (13:00 +0800)
committerDavid Marchand <david.marchand@redhat.com>
Wed, 30 Sep 2020 19:08:39 +0000 (21:08 +0200)
commitd1ca6cfd3c9d7626d43e01a6c14686d48dadf46b
tree5b50c57e938ccd554b209b63f048176ecbf010d1
parent4ee8dc7f6650a3d56b616a15c7d298523d63278f
stack: fix uninitialized variable

This patch fixes an issue that uninitialized 'success'
is used to be compared with '0'.

Coverity issue: 337676
Fixes: 3340202f5954 ("stack: add lock-free implementation")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
lib/librte_stack/rte_stack_lf_generic.h