[PATCH] resctrl: Fix testing line

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Forgot to remove this before pushing.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
Pushed as trivial.

 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 ab977b995c4d..9e477fc064ed 100644
--- a/src/util/virresctrl.c
+++ b/src/util/virresctrl.c
@@ -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];
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux