]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Remove useless ARCH_IS_X86() call
authorAndrea Bolognani <abologna@redhat.com>
Wed, 28 Nov 2018 16:08:49 +0000 (17:08 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 8 Feb 2019 15:16:18 +0000 (16:16 +0100)
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 <abologna@redhat.com>
src/qemu/qemu_domain.c

index 92047add4307cb3111446cb950b7129aed3dd4cb..edc80a8fc1d8988aff1b95919763bbfb26898174 100644 (file)
@@ -7783,7 +7783,7 @@ qemuDomainDefFormatBufInternal(virQEMUDriverPtr driver,
          * because other architectures and machine types were introduced
          * when libvirt already supported <controller type='usb'/>.
          */
-        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) &&