The field is only read in tests. Other code using it no longer exists.
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
bool tray_open;
bool empty;
int io_status;
- char *nodename;
};
#define QEMU_DOMAIN_CHR_SOURCE_PRIVATE(dev) \
{
struct qemuDomainDiskInfo *info = value;
- g_free(info->nodename);
g_free(info);
}
tmp = g_new0(struct qemuDomainDiskInfo, 1);
*tmp = *info;
- tmp->nodename = g_strdup(info->nodename);
g_hash_table_insert(table, g_strdup(entryname), tmp);
info.tray = true;
/* presence of 'inserted' notifies that a medium is in the device */
- if ((image = virJSONValueObjectGetObject(dev, "inserted"))) {
- info.nodename = (char *) virJSONValueObjectGetString(image, "node-name");
- } else {
+ if (!(image = virJSONValueObjectGetObject(dev, "inserted"))) {
info.empty = true;
}
testQemuMonitorJSONGetBlockInfoPrint(const struct qemuDomainDiskInfo *d)
{
VIR_TEST_VERBOSE("removable: %d, tray: %d, tray_open: %d, empty: %d, "
- "io_status: %d, nodename: '%s'",
+ "io_status: %d",
d->removable, d->tray, d->tray_open, d->empty,
- d->io_status, NULLSTR(d->nodename));
+ d->io_status);
}