mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
ide: Make ide_init_drive() return success
It still always succeeds. The next commits will add failures. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
cd8722bb22
commit
c4d74df726
3 changed files with 14 additions and 7 deletions
|
@ -118,7 +118,9 @@ static int ide_drive_initfn(IDEDevice *dev)
|
|||
}
|
||||
}
|
||||
|
||||
ide_init_drive(s, dev->conf.bs, dev->version, serial);
|
||||
if (ide_init_drive(s, dev->conf.bs, dev->version, serial) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!dev->version) {
|
||||
dev->version = qemu_strdup(s->version);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue