From: Martin Kletzander Date: Tue, 12 Mar 2019 08:53:48 +0000 (+0100) Subject: resctrl: Fix testing line X-Git-Tag: v5.2.0-rc1~246 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf8c8755dc8a6d53632b90aa79ba546594714264;p=thirdparty%2Flibvirt.git resctrl: Fix testing line Forgot to remove this before pushing. Signed-off-by: Martin Kletzander --- diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index ab977b995c..9e477fc064 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];