qemu: monitor: Remove unused 'locked' property from struct qemuDomainDiskInfo

We don't use it for anything useful so it does not make much sense to
extract it.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Peter Krempa 2018-08-06 13:44:18 +02:00
parent fa23ec24a1
commit 70644a8ba2
3 changed files with 0 additions and 9 deletions

View File

@ -438,7 +438,6 @@ struct _qemuDomainVcpuPrivate {
struct qemuDomainDiskInfo { struct qemuDomainDiskInfo {
bool removable; bool removable;
bool locked;
bool tray; bool tray;
bool tray_open; bool tray_open;
bool empty; bool empty;

View File

@ -2243,13 +2243,6 @@ int qemuMonitorJSONGetBlockInfo(qemuMonitorPtr mon,
goto cleanup; goto cleanup;
} }
if (virJSONValueObjectGetBoolean(dev, "locked", &info->locked) < 0) {
virReportError(VIR_ERR_INTERNAL_ERROR,
_("cannot read %s value"),
"locked");
goto cleanup;
}
/* 'tray_open' is present only if the device has a tray */ /* 'tray_open' is present only if the device has a tray */
if (virJSONValueObjectGetBoolean(dev, "tray_open", &info->tray_open) == 0) if (virJSONValueObjectGetBoolean(dev, "tray_open", &info->tray_open) == 0)
info->tray = true; info->tray = true;

View File

@ -1647,7 +1647,6 @@ testQemuMonitorJSONqemuMonitorJSONGetBlockInfo(const void *data)
if (VIR_ALLOC(info) < 0) if (VIR_ALLOC(info) < 0)
goto cleanup; goto cleanup;
info->locked = true;
info->removable = true; info->removable = true;
info->tray = true; info->tray = true;