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