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