X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=samples%2Fvfio-mdev%2Fmbochs.c;h=881ef9a7296f23ee6a26bc2bbd0f6f207c101b5a;hb=698f99ed5e06946764c3be035ce9d62a2691e08c;hp=861c76914e7639f7228dd978e6a687b77260f6e1;hpb=437d1a5b66ca60f209e25f469b395741cc10b731;p=linux-2.6-microblaze.git diff --git a/samples/vfio-mdev/mbochs.c b/samples/vfio-mdev/mbochs.c index 861c76914e76..881ef9a7296f 100644 --- a/samples/vfio-mdev/mbochs.c +++ b/samples/vfio-mdev/mbochs.c @@ -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;