diff options
| author | Peter Crosthwaite | 2014-05-12 10:13:47 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-06-17 16:07:37 +0200 |
| commit | 3fb5bf5730b90c08d5d1c027900efae210d9b326 (patch) | |
| tree | 735802368f31f36bab4705648d38479b156d4e12 /include/exec/user | |
| parent | memory: Don't update all memory region when ioeventfd changed (diff) | |
| download | qemu-3fb5bf5730b90c08d5d1c027900efae210d9b326.tar.gz qemu-3fb5bf5730b90c08d5d1c027900efae210d9b326.tar.xz qemu-3fb5bf5730b90c08d5d1c027900efae210d9b326.zip | |
memory: Simplify mr_add_subregion() if-else
This if else is not needed. The previous call to memory_region_add
(whether _overlap or not) will always set priority and may_overlap
to desired values. And its not possible to get here without having
called memory_region_add_subregion due to the null guard on parent.
So we can just directly call memory_region_add_subregion_common.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/user')
0 files changed, 0 insertions, 0 deletions
