aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorWei Yang <richardw.yang@linux.intel.com>2019-03-21 16:25:53 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-09-16 12:32:20 +0200
commitb797ab1a15ba8d2b2fc4ec3e1f24d755f6855d05 (patch)
tree538df4898967fcfc32cf07994b051cbfb0974f8c /hw/core
parentc95cfd040078db8017f74fd3a4d6f798385d960c (diff)
downloadqemu-b797ab1a15ba8d2b2fc4ec3e1f24d755f6855d05.zip
qemu-b797ab1a15ba8d2b2fc4ec3e1f24d755f6855d05.tar.gz
qemu-b797ab1a15ba8d2b2fc4ec3e1f24d755f6855d05.tar.bz2
exec.c: subpage->sub_section is already initialized to 0
In subpage_init(), we will set subpage->sub_section to PHYS_SECTION_UNASSIGNED by subpage_register. Since PHYS_SECTION_UNASSIGNED is defined to be 0, and we allocate subpage with g_malloc0, this means subpage->sub_section is already initialized to 0. This patch removes the redundant setup for a new subpage and also fix the code style. Signed-off-by: Wei Yang <richardw.yang@linux.intel.com> Message-Id: <20190321082555.21118-5-richardw.yang@linux.intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions