vhost/crypto: fix logically dead code
authorFan Zhang <roy.fan.zhang@intel.com>
Wed, 15 May 2019 16:19:48 +0000 (17:19 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit1a92c9632bf8106dbf5afd0df159612cee7f6b76
tree311ddc81f94bd23fb95afcee725261df99f1ca74
parentbe7a9518da654abba52939e9334919598669a086
vhost/crypto: fix logically dead code

This patch fixes a few same class bugs that causes the
logically dead code in vhost_crypto.

Coverity issue: 277236, 277233, 277220, 277214
Fixes: 3bb595ecd682 ("vhost/crypto: add request handler")
Cc: stable@dpdk.org
Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_crypto.c