99cbc7
From 7a31fe25a7f1d7d365ff95c3bc79b143e2f0ea7d Mon Sep 17 00:00:00 2001
99cbc7
Message-Id: <7a31fe25a7f1d7d365ff95c3bc79b143e2f0ea7d@dist-git>
99cbc7
From: Martin Kletzander <mkletzan@redhat.com>
99cbc7
Date: Mon, 15 Apr 2019 17:33:04 +0200
99cbc7
Subject: [PATCH] resctrl: Fix testing line
99cbc7
MIME-Version: 1.0
99cbc7
Content-Type: text/plain; charset=UTF-8
99cbc7
Content-Transfer-Encoding: 8bit
99cbc7
99cbc7
Forgot to remove this before pushing.
99cbc7
99cbc7
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
99cbc7
(cherry picked from commit bf8c8755dc8a6d53632b90aa79ba546594714264)
99cbc7
99cbc7
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1468650
99cbc7
99cbc7
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
99cbc7
Message-Id: <3c5d0ef57e44fffbf46a266a45cca7f858be03d8.1555342313.git.phrdina@redhat.com>
99cbc7
Reviewed-by: Ján Tomko <jtomko@redhat.com>
99cbc7
---
99cbc7
 src/util/virresctrl.c | 4 +---
99cbc7
 1 file changed, 1 insertion(+), 3 deletions(-)
99cbc7
99cbc7
diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c
99cbc7
index 92953dadf9..f44d1cde8b 100644
99cbc7
--- a/src/util/virresctrl.c
99cbc7
+++ b/src/util/virresctrl.c
99cbc7
@@ -1852,10 +1852,8 @@ virResctrlAllocCopyMemBW(virResctrlAllocPtr dst,
99cbc7
         return -1;
99cbc7
 
99cbc7
     for (i = 0; i < src_bw->nbandwidths; i++) {
99cbc7
-        if (dst_bw->bandwidths[i]) {
99cbc7
-            *dst_bw->bandwidths[i] = 123;
99cbc7
+        if (dst_bw->bandwidths[i])
99cbc7
             continue;
99cbc7
-        }
99cbc7
         if (VIR_ALLOC(dst_bw->bandwidths[i]) < 0)
99cbc7
             return -1;
99cbc7
         *dst_bw->bandwidths[i] = *src_bw->bandwidths[i];
99cbc7
-- 
99cbc7
2.21.0
99cbc7