vfio/mdev: remove unnecessary NULL check in mbochs_create()
[linux-2.6-microblaze.git] / samples / vfio-mdev / mbochs.c
index 861c769..881ef9a 100644 (file)
@@ -513,8 +513,6 @@ static int mbochs_create(struct mdev_device *mdev)
        struct device *dev = mdev_dev(mdev);
        struct mdev_state *mdev_state;
 
-       if (!type)
-               type = &mbochs_types[0];
        if (type->mbytes + mbochs_used_mbytes > max_mbytes)
                return -ENOMEM;