From c19f806e01ba5c4a4d4fac80b76841512ed4a11e Mon Sep 17 00:00:00 2001 From: KONRAD Frederic Date: Thu, 21 Mar 2013 15:15:20 +0100 Subject: virtio-scsi: cleanup: remove qdev field. The qdev field is no longer needed. Just drop it. Signed-off-by: KONRAD Frederic Reviewed-by: Cornelia Huck Reviewed-by: Peter Maydell Tested-by: Cornelia Huck Message-id: 1363875320-7985-11-git-send-email-fred.konrad@greensocs.com Signed-off-by: Anthony Liguori --- hw/virtio-scsi.c | 2 -- hw/virtio-scsi.h | 1 - 2 files changed, 3 deletions(-) (limited to 'hw') diff --git a/hw/virtio-scsi.c b/hw/virtio-scsi.c index 96e3688..06a58a6 100644 --- a/hw/virtio-scsi.c +++ b/hw/virtio-scsi.c @@ -704,8 +704,6 @@ static int virtio_scsi_device_init(VirtIODevice *vdev) s->cmd_vqs = g_malloc0(s->conf.num_queues * sizeof(VirtQueue *)); - s->qdev = qdev; - /* TODO set up vdev function pointers */ vdev->get_config = virtio_scsi_get_config; vdev->set_config = virtio_scsi_set_config; diff --git a/hw/virtio-scsi.h b/hw/virtio-scsi.h index fe2c7d6..31e97bb 100644 --- a/hw/virtio-scsi.h +++ b/hw/virtio-scsi.h @@ -39,7 +39,6 @@ struct VirtIOSCSIConf { typedef struct VirtIOSCSI { VirtIODevice parent_obj; - DeviceState *qdev; VirtIOSCSIConf conf; SCSIBus bus; -- cgit v1.1