From: Peter Krempa <[email protected]>

Signed-off-by: Peter Krempa <[email protected]>
---
 src/qemu/qemu_domain.h  | 2 --
 src/qemu/qemu_process.c | 4 ----
 2 files changed, 6 deletions(-)

diff --git a/src/qemu/qemu_domain.h b/src/qemu/qemu_domain.h
index 393f9c9c96..2a881a8285 100644
--- a/src/qemu/qemu_domain.h
+++ b/src/qemu/qemu_domain.h
@@ -288,8 +288,6 @@ struct _qemuDomainDiskPrivate {
     virStorageSource *migrSource; /* disk source object used for NBD migration 
*/
     bool migrationslice; /* storage slice was added for migration purposes */

-    bool tray; /* device has tray */
-
     char *qomName; /* QOM path of the disk (also refers to the block backend) 
*/
     char *nodeCopyOnRead; /* nodename of the disk-wide copy-on-read blockdev 
layer */

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index e627d2121e..2142198589 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -9591,16 +9591,12 @@ void
 qemuProcessRefreshDiskProps(virDomainDiskDef *disk,
                             struct qemuDomainDiskInfo *info)
 {
-    qemuDomainDiskPrivate *diskpriv = QEMU_DOMAIN_DISK_PRIVATE(disk);
-
     if (info->tray) {
         if (info->tray_open)
             disk->tray_status = VIR_DOMAIN_DISK_TRAY_OPEN;
         else
             disk->tray_status = VIR_DOMAIN_DISK_TRAY_CLOSED;
     }
-
-    diskpriv->tray = info->tray;
 }


-- 
2.53.0

Reply via email to