]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc: Drop useless check in live device update
authorJiri Denemark <jdenemar@redhat.com>
Thu, 22 Feb 2018 12:22:39 +0000 (13:22 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 23 Feb 2018 10:52:44 +0000 (11:52 +0100)
Checking the new device definition makes little sense when lxc driver
does not support live device update at all.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/lxc/lxc_driver.c

index 3d5b2254f255ea37c39df9dd99dccc5d99e5d80a..4c6f09a4352fe84638e0c7ce9f7cd0748fdeb50a 100644 (file)
@@ -4939,9 +4939,6 @@ static int lxcDomainUpdateDeviceFlags(virDomainPtr dom,
     }
 
     if (flags & VIR_DOMAIN_AFFECT_LIVE) {
-        if (virDomainDefCompatibleDevice(vm->def, dev_copy) < 0)
-            goto endjob;
-
         virReportError(VIR_ERR_OPERATION_UNSUPPORTED, "%s",
                        _("Unable to modify live devices"));