projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vfio/mdev: remove unnecessary NULL check in mbochs_create()
[linux-2.6-microblaze.git]
/
samples
/
vfio-mdev
/
mbochs.c
diff --git
a/samples/vfio-mdev/mbochs.c
b/samples/vfio-mdev/mbochs.c
index
861c769
..
881ef9a
100644
(file)
--- 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;