diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2009-09-25 21:42:36 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:48 -0500 |
commit | 01985dcf38a94d0db35f54315ba2454e68f16175 (patch) | |
tree | 83a90b7164f8a7b6a60a3dfe45845970416795a9 /hw/scsi-disk.c | |
parent | d29275f10382844e000ddaafaddc6780555e8d83 (diff) |
Implement scsi device destruction
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/scsi-disk.c')
-rw-r--r-- | hw/scsi-disk.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/scsi-disk.c b/hw/scsi-disk.c index de8e314b15..0f029f897d 100644 --- a/hw/scsi-disk.c +++ b/hw/scsi-disk.c @@ -936,11 +936,6 @@ static int32_t scsi_send_command(SCSIDevice *d, uint32_t tag, } } -static void scsi_destroy(SCSIDevice *d) -{ - qemu_free(d); -} - static int scsi_disk_initfn(SCSIDevice *dev) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, dev); @@ -974,7 +969,6 @@ static SCSIDeviceInfo scsi_disk_info = { .qdev.desc = "virtual scsi disk or cdrom", .qdev.size = sizeof(SCSIDiskState), .init = scsi_disk_initfn, - .destroy = scsi_destroy, .send_command = scsi_send_command, .read_data = scsi_read_data, .write_data = scsi_write_data, |