mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 02:24:58 -06:00
hw: Inline the qdev_prop_set_drive_nofail() wrapper
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1449764955-10741-3-git-send-email-armbru@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
007b06578a
commit
6231a6da9f
8 changed files with 21 additions and 22 deletions
|
@ -324,14 +324,14 @@ static void pc87312_realize(DeviceState *dev, Error **errp)
|
|||
/* FIXME use a qdev drive property instead of drive_get() */
|
||||
drive = drive_get(IF_FLOPPY, 0, 0);
|
||||
if (drive != NULL) {
|
||||
qdev_prop_set_drive_nofail(d, "driveA",
|
||||
blk_by_legacy_dinfo(drive));
|
||||
qdev_prop_set_drive(d, "driveA", blk_by_legacy_dinfo(drive),
|
||||
&error_fatal);
|
||||
}
|
||||
/* FIXME use a qdev drive property instead of drive_get() */
|
||||
drive = drive_get(IF_FLOPPY, 0, 1);
|
||||
if (drive != NULL) {
|
||||
qdev_prop_set_drive_nofail(d, "driveB",
|
||||
blk_by_legacy_dinfo(drive));
|
||||
qdev_prop_set_drive(d, "driveB", blk_by_legacy_dinfo(drive),
|
||||
&error_fatal);
|
||||
}
|
||||
qdev_init_nofail(d);
|
||||
s->fdc.dev = isa;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue