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>
struct qemuDomainDiskInfo {
bool removable;
- bool locked;
bool tray;
bool tray_open;
bool empty;
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 */
if (virJSONValueObjectGetBoolean(dev, "tray_open", &info->tray_open) == 0)
info->tray = true;
if (VIR_ALLOC(info) < 0)
goto cleanup;
- info->locked = true;
info->removable = true;
info->tray = true;