From: Andrea Bolognani Date: Wed, 28 Nov 2018 16:08:49 +0000 (+0100) Subject: qemu: Remove useless ARCH_IS_X86() call X-Git-Tag: v5.1.0-rc1~181 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a8b14718e646b7685a81b3bf0967667a6d80a15;p=thirdparty%2Flibvirt.git qemu: Remove useless ARCH_IS_X86() call Now that we have added architecture checks to all qemuDomainIs*() functions, we no longer need to perform the same checks separately. Signed-off-by: Andrea Bolognani --- diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 92047add43..edc80a8fc1 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -7783,7 +7783,7 @@ qemuDomainDefFormatBufInternal(virQEMUDriverPtr driver, * because other architectures and machine types were introduced * when libvirt already supported . */ - if (ARCH_IS_X86(def->os.arch) && qemuDomainIsI440FX(def) && + if (qemuDomainIsI440FX(def) && usb && usb->idx == 0 && (usb->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_DEFAULT || usb->model == VIR_DOMAIN_CONTROLLER_MODEL_USB_PIIX3_UHCI) &&