diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c index 421f02a8530af2bfb0b1f1c4c7aef0f338929d2d..3d2cb811757ad30a9af4978fcf3bb47e32b42e7f 100644 --- a/drivers/vhost/vdpa.c +++ b/drivers/vhost/vdpa.c @@ -678,8 +678,6 @@ static int vhost_vdpa_open(struct inode *inode, struct file *filep) int nvqs, i, r, opened; v = container_of(inode->i_cdev, struct vhost_vdpa, cdev); - if (!v) - return -ENODEV; opened = atomic_cmpxchg(&v->opened, 0, 1); if (opened)