From nobody Sun Feb 8 14:22:08 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=1638452024; cv=none; d=zohomail.com; s=zohoarc; b=F12tuqZ+SxHVmyVPgDhCcOtXuCM8pu1Iz0r+Nu6PH/T/1bK3x9eJVVIzt07XCGg32AdO0rfQM17bueVepnaV58yBWiDGxj76DG8WTeONH2R/BAGS60etgI3MAFT0N3Y56ASLq5Z1b1m+yRcObivQM9g1CK9TFc2Zc24YnPmsQUA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1638452024; 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=+rNCx+hOAq4oQ1MWMQXcqgsTLcCkyD34SSzpYJu1Eu0=; b=T0KRAtZfZE/+aKSTzAeXDpv8QPIwyZysTUAJYf/wb1GiXd1dzTRoYg2OwroN0e6A6bi+oF3pIkqMD6lcbsK2ethXiOeg5A2wmuUWD1hwZ3rzoTRZ1ZxaRy/faHLeSxnHn1GmwasW1kdwsrnaQzLvHHG9qoQ0ft01MB3072yqVGQ= 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 163845202483846.7690780126826; Thu, 2 Dec 2021 05:33:44 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-595-KtrxIr-qOd6yzQGGEdNDKw-1; Thu, 02 Dec 2021 08:33:40 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 652FA83DEA6; Thu, 2 Dec 2021 13:33:35 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 60DBF4EDC1; Thu, 2 Dec 2021 13:33:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CBDEC4CA9B; Thu, 2 Dec 2021 13:33:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 1B2DXOFV020987 for ; Thu, 2 Dec 2021 08:33:25 -0500 Received: by smtp.corp.redhat.com (Postfix) id D399918371; Thu, 2 Dec 2021 13:33:24 +0000 (UTC) Received: from antique-work.lan (unknown [10.40.192.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 51BDA5D9D5 for ; Thu, 2 Dec 2021 13:33:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638452023; 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=+rNCx+hOAq4oQ1MWMQXcqgsTLcCkyD34SSzpYJu1Eu0=; b=agdtP6wADfTFs1QYoMJcDNy5mm19BiQBHTGsHDDq7YISP8A+Nvk8A892nHiltUno9OxnVJ m+V8+ZCothndOwb+lIDFqYZ5Uw+en3pELJ5hpd9NuLwAtPPdA31iSznPWUu1vjUBaWHlcf 8gMeukGP0EoeJavurVXYxflM54ckxG0= X-MC-Unique: KtrxIr-qOd6yzQGGEdNDKw-1 From: Pavel Hrdina To: libvir-list@redhat.com Subject: [libvirt PATCH 02/14] qemu_snapshot: revert: drop unused variable Date: Thu, 2 Dec 2021 14:33:09 +0100 Message-Id: <0c122b1f9690e9ed3daf6eede5af71c5cd86f658.1638451855.git.phrdina@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1638452025430100002 Content-Type: text/plain; charset="utf-8" Commit dropped unused code but missed one variable. Signed-off-by: Pavel Hrdina --- src/qemu/qemu_snapshot.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qemu/qemu_snapshot.c b/src/qemu/qemu_snapshot.c index 64b5838db8..413b31bae5 100644 --- a/src/qemu/qemu_snapshot.c +++ b/src/qemu/qemu_snapshot.c @@ -1944,7 +1944,6 @@ qemuSnapshotRevert(virDomainObj *vm, virDomainDef *inactiveConfig =3D NULL; g_autoptr(virQEMUDriverConfig) cfg =3D virQEMUDriverGetConfig(driver); qemuDomainSaveCookie *cookie; - virCPUDef *origCPU =3D NULL; unsigned int start_flags =3D VIR_QEMU_PROCESS_START_GEN_VMID; bool defined =3D false; =20 @@ -2234,7 +2233,6 @@ qemuSnapshotRevert(virDomainObj *vm, } virObjectEventStateQueue(driver->domainEventState, event); virObjectEventStateQueue(driver->domainEventState, event2); - virCPUDefFree(origCPU); virDomainDefFree(config); virDomainDefFree(inactiveConfig); =20 --=20 2.31.1