ide: Make it explicit that ide_create_drive() can't fail
authorMarkus Armbruster <armbru@redhat.com>
Fri, 25 Jun 2010 16:53:22 +0000 (18:53 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 2 Jul 2010 11:18:01 +0000 (13:18 +0200)
commitd82491b19faf835a62c67ef718d82c266be45ef2
treec0fa0f87f351a01164bdc59e8b59d2ddd5502ce7
parent1e0736f463835bc5f3ee9134b48c47cab59afbb6
ide: Make it explicit that ide_create_drive() can't fail

All callers of ide_create_drive() ignore its value.  Currently
harmless, because it fails only when qdev_init() fails, which fails
only when ide_drive_initfn() fails, which never fails.

Brittle.  Change it to die instead of silently ignoring failure.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/qdev.c