diff options
author | Markus Armbruster | 2011-08-03 15:08:13 +0200 |
---|---|---|
committer | Kevin Wolf | 2011-09-06 11:24:07 +0200 |
commit | 124386cc756f6a7975562d652d0e98a379292138 (patch) | |
tree | 304ef3c6284d42ec4486cdbb4b4373ce54b2cfaa /hw/sd.c | |
parent | xen: Clean up pci_piix3_xen_ide_unplug()'s test for "not a CD" (diff) | |
download | qemu-124386cc756f6a7975562d652d0e98a379292138.tar.gz qemu-124386cc756f6a7975562d652d0e98a379292138.tar.xz qemu-124386cc756f6a7975562d652d0e98a379292138.zip |
spitz tosa: Simplify "drive is suitable for microdrive" test
We try the drive defined with -drive if=ide,index=0 (or equivalent
sugar). We use it only if (dinfo && bdrv_is_inserted(dinfo->bdrv) &&
!bdrv_is_removable(dinfo->bdrv)). This is a convoluted way to test
for "drive media can't be removed".
The only way to create such a drive with -drive if=ide is media=cdrom.
And that sets dinfo->media_cd, so just test that.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/sd.c')
0 files changed, 0 insertions, 0 deletions