vhost: fix uninitialized local variable
authorPatrick Fu <patrick.fu@intel.com>
Tue, 27 Oct 2020 08:50:19 +0000 (16:50 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:05 +0000 (23:35 +0100)
commit5b4a1e7ee46617f1cdfd6d61eff5f266f70e0d93
tree7018976559a079660f399e7e973ab69ff1853db4
parent0474419bae7c70117010e77c5278965fff9cbf9b
vhost: fix uninitialized local variable

This patch initializes a local parameter in async data path to avoid
compiler warnings.

Fixes: cd6760da1076 ("vhost: introduce async enqueue for split ring")
Cc: stable@dpdk.org
Signed-off-by: Patrick Fu <patrick.fu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/virtio_net.c