memory: Simplify mr_add_subregion() if-else
commit3fb5bf5730b90c08d5d1c027900efae210d9b326
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Mon, 12 May 2014 08:13:47 +0000 (12 01:13 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 17 Jun 2014 14:07:37 +0000 (17 16:07 +0200)
tree735802368f31f36bab4705648d38479b156d4e12
parent4dc56152237f61694fa42675a78ffd14a509df98
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>
memory.c