vhost: remove unneeded null pointer check
authorTiwei Bie <tiwei.bie@intel.com>
Wed, 7 Nov 2018 09:01:02 +0000 (17:01 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 13 Nov 2018 23:35:53 +0000 (00:35 +0100)
commit0541588a44bff07e4aae4c9cde8586326955c378
tree61ac7e99ca692eb02525d95330c0919993adf4b3
parentecfae1510edc1391285aa566a2d31e7eae8fc6d2
vhost: remove unneeded null pointer check

The caller will guarantee that msg won't be null. Remove
the unneeded null pointer check which caused a Coverity
warning.

Coverity issue: 323484
Fixes: 8f972312b8f4 ("vhost: support vhost-user")
Cc: stable@dpdk.org
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c