From nobody Sun Feb 8 18:39:17 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1681999423; cv=none; d=zohomail.com; s=zohoarc; b=H3oh50sHhXSFhedB0sdw2BR07yueJZGpJ4P8jOrqE8uKiTglyPnE49IvxU49a4ouJgcSHH+ULs35bjiRHRqb4l1EFWrH0jUnA/kD//+P1WE8efvpSSjrtZ3u1b6TD+x4vOFKub5RCFJsEbdmpCv+qCgVU/n82V3w/WpoC4pKJZw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681999423; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=vgOYOmCTzmZhvcvhL7Q/4CCHZSI8nT406wp0/ZJzfPs=; b=NzbHt0vmZqzzlgSZXI8E+t4c0ITk3wTqEuTgGLcRuhWU5wleUKlX+gzcdfmHBuBxBurZpX9Kwbo0RZ+C0cwM2YXIohGHt/CeDqh4eRKcO4ZzZM5gPgwYnPM142bUTn7KvuvfGQJRJfVDUla1Og6kFCSOG2lXpFHeByA/Lta67ME= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.zohomail.com with SMTPS id 1681999423473230.725274070997; Thu, 20 Apr 2023 07:03:43 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-142-WejAJt-hMnqrpts5zfV5HQ-1; Thu, 20 Apr 2023 10:03:21 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 39EB3884620; Thu, 20 Apr 2023 14:02:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24A0A63A5F; Thu, 20 Apr 2023 14:02:23 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C7CD51946A75; Thu, 20 Apr 2023 14:02:21 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id DBA941946A51 for ; Thu, 20 Apr 2023 14:02:20 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id BFD43C017D7; Thu, 20 Apr 2023 14:02:20 +0000 (UTC) Received: from hjs.. (unknown [10.43.2.85]) by smtp.corp.redhat.com (Postfix) with ESMTP id 670BCC16026 for ; Thu, 20 Apr 2023 14:02:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681999420; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=vgOYOmCTzmZhvcvhL7Q/4CCHZSI8nT406wp0/ZJzfPs=; b=S+QoQ9tBWckpHe5HxDSjtmJCSzl/vJnSnQtsvaywIN7CPhT1/kWuyArGRhJEL0+Ma8o47J BET7hPEuXwi5o2vp+1Qo6cpNBFIyl2Vy3g66u2IaVb9FNGq8C4YIwvInDGXN2CON2oUgGQ Yno0RIwNrR1v3lfRadV2bwgmrWi5aQI= X-MC-Unique: WejAJt-hMnqrpts5zfV5HQ-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 3/4] ch: pinVcpuLive: remove unused variable Date: Thu, 20 Apr 2023 16:02:15 +0200 Message-Id: <7a85193fbd8304b2c63087d081660f2ac1248021.1681999311.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1681999425255100001 Signed-off-by: J=C3=A1n Tomko --- src/ch/ch_driver.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/ch/ch_driver.c b/src/ch/ch_driver.c index 72fe3198b2..45cdbfd37c 100644 --- a/src/ch/ch_driver.c +++ b/src/ch/ch_driver.c @@ -1148,8 +1148,6 @@ chDomainPinVcpuLive(virDomainObj *vm, virDomainVcpuDef *vcpuinfo; virCHDomainObjPrivate *priv =3D vm->privateData; =20 - g_autofree char *str =3D NULL; - if (!virCHDomainHasVcpuPids(vm)) { virReportError(VIR_ERR_OPERATION_INVALID, "%s", _("cpu affinity is not supported")); @@ -1166,9 +1164,6 @@ chDomainPinVcpuLive(virDomainObj *vm, if (!(tmpmap =3D virBitmapNewCopy(cpumap))) return -1; =20 - if (!(str =3D virBitmapFormat(cpumap))) - return -1; - if (vcpuinfo->online) { /* Configure the corresponding cpuset cgroup before set affinity. = */ if (virCgroupHasController(priv->cgroup, VIR_CGROUP_CONTROLLER_CPU= SET)) { --=20 2.39.2