From nobody Sun Feb 8 16:11:49 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.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 216.205.24.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=1630783855; cv=none; d=zohomail.com; s=zohoarc; b=eBKYpooDA2WTRZ/1NYsKv5T+p9nk/djLFnOHJyXmPMdguTJkiUP2S4BwVSkR4qIKjBT2Wkk/W18SsdojNjq65fBW9mXWtI52ewwusURl2YCduLni7gq1HnpagRJhZqueprJrD8JE9b+6wiJykbINISx00TDoOcNIcs8FGPWDJ3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1630783855; 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=sDHVMGdelE6y3aCj6w+1t63Hp7Wk8/KVFjUZ9Vg3LGA=; b=LuMitr+zpQH1dhwAEYeWh22Vaumpw5Xb5qSg5oFQrA7RG7COwcinZ2+HNjnxTARJQq1PbL87wKqD9eUIx7cREgtfhsj6GjRHeOZdT90qjmKX8jZ8tZN3e19nltQhMJhcrKHeTAVF5qrIHbnFV7q5o6Z1RzN/Uvpx2RRxHYyt8aU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.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 [216.205.24.124]) by mx.zohomail.com with SMTPS id 1630783855273719.877553128609; Sat, 4 Sep 2021 12:30:55 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-473-LPTUFxOtOeu-WGQCpFufQg-1; Sat, 04 Sep 2021 15:30:52 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6F11E80292A; Sat, 4 Sep 2021 19:30:45 +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 91B7010074E1; Sat, 4 Sep 2021 19:30:43 +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 A761F4EEA1; Sat, 4 Sep 2021 19:30:39 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 184JPtrN001928 for ; Sat, 4 Sep 2021 15:25:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id CDF4F5D740; Sat, 4 Sep 2021 19:25:55 +0000 (UTC) Received: from hjs.redhat.com (unknown [10.43.2.20]) by smtp.corp.redhat.com (Postfix) with ESMTP id 585325D6A1 for ; Sat, 4 Sep 2021 19:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1630783854; 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=sDHVMGdelE6y3aCj6w+1t63Hp7Wk8/KVFjUZ9Vg3LGA=; b=IJC/GYnOOn33w2qBc+pDatp/voO7KsO1zqgSaOpz+pnkh6sDlu5IANqVrIMXEwy7xmltV2 JXDGRlmA3eHmOjJX4vjeFrdF7Q3LJbtJjcHVHOFagQObz2SuhJQo5um9jSWurmNCsUf1ev 2KJ7RzIghdu8/JA23Ef6fgdqD6Sp3lE= X-MC-Unique: LPTUFxOtOeu-WGQCpFufQg-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH 1/4] qemu: remove unused 'cfg' variables Date: Sat, 4 Sep 2021 21:25:46 +0200 Message-Id: <00f7b34b0fbd7fd2b1af8252520e8ce47a73c694.1630783290.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 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.84 on 10.5.11.22 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-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1630783856433100001 Unused as of: commit effeee5c2fcec19fcaad627690a6a0ba0025e35f qemu: driver: Use 'qemuDomainSaveStatus' for saving status XML This function extracts the config from the vm object, so the caller no longer needs to do it. Signed-off-by: J=C3=A1n Tomko --- src/qemu/qemu_driver.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index f1f961c51c..dfffd6b373 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -1837,7 +1837,6 @@ static int qemuDomainSuspend(virDomainPtr dom) qemuDomainObjPrivate *priv; virDomainPausedReason reason; int state; - g_autoptr(virQEMUDriverConfig) cfg =3D NULL; =20 if (!(vm =3D qemuDomainObjFromDomain(dom))) return -1; @@ -1845,7 +1844,6 @@ static int qemuDomainSuspend(virDomainPtr dom) if (virDomainSuspendEnsureACL(dom->conn, vm->def) < 0) goto cleanup; =20 - cfg =3D virQEMUDriverGetConfig(driver); priv =3D vm->privateData; =20 if (qemuDomainObjBeginJob(driver, vm, QEMU_JOB_SUSPEND) < 0) @@ -1890,13 +1888,10 @@ static int qemuDomainResume(virDomainPtr dom) int ret =3D -1; int state; int reason; - g_autoptr(virQEMUDriverConfig) cfg =3D NULL; =20 if (!(vm =3D qemuDomainObjFromDomain(dom))) return -1; =20 - cfg =3D virQEMUDriverGetConfig(driver); - if (virDomainResumeEnsureACL(dom->conn, vm->def) < 0) goto cleanup; =20 @@ -20237,8 +20232,6 @@ qemuDomainAgentSetResponseTimeout(virDomainPtr dom, int timeout, unsigned int flags) { - virQEMUDriver *driver =3D dom->conn->privateData; - g_autoptr(virQEMUDriverConfig) cfg =3D NULL; virDomainObj *vm =3D NULL; int ret =3D -1; =20 @@ -20255,8 +20248,6 @@ qemuDomainAgentSetResponseTimeout(virDomainPtr dom, if (!(vm =3D qemuDomainObjFromDomain(dom))) return -1; =20 - cfg =3D virQEMUDriverGetConfig(driver); - if (virDomainAgentSetResponseTimeoutEnsureACL(dom->conn, vm->def) < 0) goto cleanup; =20 --=20 2.31.1