提交 edf51c13 编写于 作者: J Jiri Denemark

cpu: Don't overwrite errors in cpuGetModels

cpuGetSubDriver already reports a useful error.
Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
上级 1bc84843
......@@ -765,13 +765,8 @@ cpuGetModels(virArch arch, char ***models)
VIR_DEBUG("arch=%s", virArchToString(arch));
driver = cpuGetSubDriver(arch);
if (driver == NULL) {
virReportError(VIR_ERR_INVALID_ARG,
_("cannot find a driver for the architecture %s"),
virArchToString(arch));
if (!(driver = cpuGetSubDriver(arch)))
return -1;
}
if (!driver->getModels) {
if (models)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册