ide: Change ide_init_drive() to require valid dinfo argument
commit870111c8ed95df62a101eae0acd08c84233a6341
authorMarkus Armbruster <armbru@redhat.com>
Tue, 1 Jun 2010 18:32:28 +0000 (1 20:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 09:43:39 +0000 (4 11:43 +0200)
tree756b156e9e16783e14e50fc4aaa55f7ce50f05b1
parentd459da0ed4bcdc38d5aaaa78f0c83fdeac6dd190
ide: Change ide_init_drive() to require valid dinfo argument

IDEState members drive_serial_str and version are now left empty until
an actual drive is connected.  Before, they got a default value that
was overwritten when a drive got connected.  Doesn't matter, because
they're used only while a drive is connected.

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