Revision 33e66b86 hw/pci-hotplug.c
b/hw/pci-hotplug.c | ||
---|---|---|
172 | 172 |
default: |
173 | 173 |
dev = NULL; |
174 | 174 |
} |
175 |
if (dev)
|
|
176 |
qdev_init(&dev->qdev);
|
|
175 |
if (!dev || qdev_init(&dev->qdev) < 0)
|
|
176 |
return NULL;
|
|
177 | 177 |
return dev; |
178 | 178 |
} |
179 | 179 |
|
Also available in: Unified diff