]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
resctrl: Fix testing line
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 12 Mar 2019 08:53:48 +0000 (09:53 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 12 Mar 2019 08:53:48 +0000 (09:53 +0100)
Forgot to remove this before pushing.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/virresctrl.c

index ab977b995c4dfd5911ec2474ffc21ddf9ef828ff..9e477fc064ed4f1525baa2a6f630967e378e966d 100644 (file)
@@ -2166,10 +2166,8 @@ virResctrlAllocCopyMemBW(virResctrlAllocPtr dst,
         return -1;
 
     for (i = 0; i < src_bw->nbandwidths; i++) {
-        if (dst_bw->bandwidths[i]) {
-            *dst_bw->bandwidths[i] = 123;
+        if (dst_bw->bandwidths[i])
             continue;
-        }
         if (VIR_ALLOC(dst_bw->bandwidths[i]) < 0)
             return -1;
         *dst_bw->bandwidths[i] = *src_bw->bandwidths[i];