]> git.droids-corp.org - dpdk.git/blobdiff - drivers/bus/vmbus/vmbus_channel.c
net/mlx5: allow meta modifications in legacy mode
[dpdk.git] / drivers / bus / vmbus / vmbus_channel.c
index f67f1c438a6cf788674b18510d34fc798f335a36..119b9b367e1701dd066135ef98b999af9d47f185 100644 (file)
@@ -351,10 +351,8 @@ int rte_vmbus_chan_open(struct rte_vmbus_device *device,
 
        err = vmbus_chan_create(device, device->relid, 0,
                                device->monitor_id, new_chan);
-       if (!err) {
+       if (!err)
                device->primary = *new_chan;
-               uio_res->primary = *new_chan;
-       }
 
        return err;
 }