diff options
author | David Hildenbrand | 2018-06-19 15:41:36 +0200 |
---|---|---|
committer | Paolo Bonzini | 2018-06-28 19:05:33 +0200 |
commit | 7943e97b858e64eddf0f3395427e58c5cc00a7d9 (patch) | |
tree | a8c0bb09d92d171049379dc115fe811de6b30405 /hw/mem/pc-dimm.c | |
parent | nvdimm: no need to overwrite get_vmstate_memory_region() (diff) | |
download | qemu-7943e97b858e64eddf0f3395427e58c5cc00a7d9.tar.gz qemu-7943e97b858e64eddf0f3395427e58c5cc00a7d9.tar.xz qemu-7943e97b858e64eddf0f3395427e58c5cc00a7d9.zip |
hostmem: drop error variable from host_memory_backend_get_memory()
Unused, so let's remove it.
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180619134141.29478-8-david@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/mem/pc-dimm.c')
-rw-r--r-- | hw/mem/pc-dimm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c index 7387963cf1..73f0eee4c7 100644 --- a/hw/mem/pc-dimm.c +++ b/hw/mem/pc-dimm.c @@ -226,12 +226,12 @@ static MemoryRegion *pc_dimm_get_memory_region(PCDIMMDevice *dimm, Error **errp) return NULL; } - return host_memory_backend_get_memory(dimm->hostmem, errp); + return host_memory_backend_get_memory(dimm->hostmem); } static MemoryRegion *pc_dimm_get_vmstate_memory_region(PCDIMMDevice *dimm) { - return host_memory_backend_get_memory(dimm->hostmem, &error_abort); + return host_memory_backend_get_memory(dimm->hostmem); } static uint64_t pc_dimm_md_get_addr(const MemoryDeviceState *md) |