提交 a6d2ae9b 编写于 作者: D Daniel Henrique Barboza 提交者: Michal Privoznik

qemu_domain.c: remove unneeded size check in NVDIMM alignment

Commit 5540acb9 added a minimum size verification for the target
size of ppc64 NVDIMMs but forgot to remove a MAX() size check that
was being used in earlier reviews of that commit. The size
verification makes this check unneeded since we're making sure
that guestArea will always be at least equal to ppc64AlignSize.

Fixes: 5540acb9Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 c71e4c63
......@@ -12686,8 +12686,6 @@ qemuDomainNVDimmAlignSizePseries(virDomainDefPtr def,
}
guestArea = (guestArea/ppc64AlignSize) * ppc64AlignSize;
guestArea = MAX(guestArea, ppc64AlignSize);
mem->size = guestArea + mem->labelsize;
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册