Revision 8cb6789a hw/scsi-bus.c
b/hw/scsi-bus.c | ||
---|---|---|
214 | 214 |
if (bootindex >= 0) { |
215 | 215 |
qdev_prop_set_int32(dev, "bootindex", bootindex); |
216 | 216 |
} |
217 |
if (qdev_prop_exists(dev, "removable")) {
|
|
217 |
if (object_property_find(OBJECT(dev), "removable")) {
|
|
218 | 218 |
qdev_prop_set_bit(dev, "removable", removable); |
219 | 219 |
} |
220 | 220 |
if (qdev_prop_set_drive(dev, "drive", bdrv) < 0) { |
Also available in: Unified diff