examples/vhost_blk: check unused value on init
authorJin Yu <jin.yu@intel.com>
Wed, 27 Nov 2019 12:16:58 +0000 (20:16 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
commit1da2925f1994a54fdedb521b205b4ebff146d0df
tree9aae945a5b34fcc80df8e8b0a2824641b6471b9b
parentfdf69a8179245b01de3a736938166331487f4257
examples/vhost_blk: check unused value on init

Add the assert to handle error.

Coverity issue: 350592
Fixes: c19beb3f38cd ("examples/vhost_blk: introduce vhost storage sample")
Cc: stable@dpdk.org
Signed-off-by: Jin Yu <jin.yu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
examples/vhost_blk/vhost_blk.c