dma/hisilicon: use common PCI device naming
[dpdk.git] / examples / vhost_blk / vhost_blk.c
index fe2b4e4..2cab1e6 100644 (file)
@@ -753,7 +753,7 @@ new_connection(int vid)
        return 0;
 }
 
-struct vhost_device_ops vhost_blk_device_ops = {
+struct rte_vhost_device_ops vhost_blk_device_ops = {
        .new_device =  new_device,
        .destroy_device = destroy_device,
        .new_connection = new_connection,
@@ -849,8 +849,7 @@ static void
 vhost_blk_ctrlr_destroy(struct vhost_blk_ctrlr *ctrlr)
 {
        if (ctrlr->bdev != NULL) {
-               if (ctrlr->bdev->data != NULL)
-                       rte_free(ctrlr->bdev->data);
+               rte_free(ctrlr->bdev->data);
 
                rte_free(ctrlr->bdev);
        }