X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fvhost%2Fiotlb.c;h=5a5ba8b82a61b6b92eefb34ea11e2176338d80f1;hb=a2dfcd1ff609f5a4fd3b65774618a35c5c9f73c6;hp=b24202a7eba3ac92340ac2543d7f38451a6e4d82;hpb=d84723029c76bd63ad3e4b59c0e2831147e2b58d;p=dpdk.git diff --git a/lib/vhost/iotlb.c b/lib/vhost/iotlb.c index b24202a7eb..5a5ba8b82a 100644 --- a/lib/vhost/iotlb.c +++ b/lib/vhost/iotlb.c @@ -324,8 +324,7 @@ vhost_user_iotlb_init(struct virtio_net *dev, int vq_index) /* If already created, free it and recreate */ vq->iotlb_pool = rte_mempool_lookup(pool_name); - if (vq->iotlb_pool) - rte_mempool_free(vq->iotlb_pool); + rte_mempool_free(vq->iotlb_pool); vq->iotlb_pool = rte_mempool_create(pool_name, IOTLB_CACHE_SIZE, sizeof(struct vhost_iotlb_entry), 0,