mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
cpu: Don't overwrite errors in cpuGetModels
cpuGetSubDriver already reports a useful error. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
parent
1bc8484326
commit
edf51c136c
@ -765,13 +765,8 @@ cpuGetModels(virArch arch, char ***models)
|
|||||||
|
|
||||||
VIR_DEBUG("arch=%s", virArchToString(arch));
|
VIR_DEBUG("arch=%s", virArchToString(arch));
|
||||||
|
|
||||||
driver = cpuGetSubDriver(arch);
|
if (!(driver = cpuGetSubDriver(arch)))
|
||||||
if (driver == NULL) {
|
|
||||||
virReportError(VIR_ERR_INVALID_ARG,
|
|
||||||
_("cannot find a driver for the architecture %s"),
|
|
||||||
virArchToString(arch));
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
|
||||||
|
|
||||||
if (!driver->getModels) {
|
if (!driver->getModels) {
|
||||||
if (models)
|
if (models)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user