From nobody Tue May 7 07:05:08 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1575896846; cv=none; d=zohomail.com; s=zohoarc; b=JFa6YFtOzQEQYJZSnrt1xPramBFGIcC0gYeQS3pNRn6aCNb/IAFP2wi3852H4zBugrxH86BFrAa+mOWzgpFrdM6pHtHeSgCyqi9HMKy0Gk183a/D/2O3CD0JfiuMGIjos0xvjYeMV+189HxTKGYd51eTjAZxDou4N4xjJYCHH6U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575896846; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=OqW6tx6290gGG+2wFlQfPboCoOH2o34cOlrh2UfOUR8=; b=jMC9Y9CRYM+BMQKSacaqrmfpDUUHvlqfmLNGiSCmvwWVAdfTN2rzg6HX42CkUn7pFM6ocTbfuDrCjZGPbd24kvNCZAepYImNgqbtZqVvsk23znpW8LxyQ+uLGcnmgZOCGI5hPaXT+Q418Q7O+ElwE2wt7wb+rTmi7EteybBMvsc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 157589684670852.841080535458445; Mon, 9 Dec 2019 05:07:26 -0800 (PST) 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-275-dB6V3vhIO826iN9pZVkdXg-1; Mon, 09 Dec 2019 08:07:23 -0500 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 AD9EA800EB7; Mon, 9 Dec 2019 13:07:17 +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 1F6B31001B09; Mon, 9 Dec 2019 13:07:17 +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 CAC658354F; Mon, 9 Dec 2019 13:07:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xB9D7GLF025149 for ; Mon, 9 Dec 2019 08:07:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id 1AE146055C; Mon, 9 Dec 2019 13:07:16 +0000 (UTC) Received: from angien.redhat.com (unknown [10.43.2.48]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6DF75600D3; Mon, 9 Dec 2019 13:07:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575896845; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OqW6tx6290gGG+2wFlQfPboCoOH2o34cOlrh2UfOUR8=; b=aRkUM7X4FwF3t0Ovk5T5G/mag84M5kNkUcimATB+Sr2yBMqI+Ui/hhmjqhOdVztoVgrhCh ik0PXzKggrbhPubITH8A5X2uxNVkLKs4nS/AyGBp4xCsNsNuZvrnYIddkjnVpbjZlgS1h1 6Lwa7kmJ5wkXfNyOl7GSQw0LHxY1xWk= From: Peter Krempa To: libvir-list@redhat.com Date: Mon, 9 Dec 2019 14:07:11 +0100 Message-Id: <35614b6022244b8ccb04b0c7aff3b7cd32ff418a.1575896805.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Cc: Peter Krempa Subject: [libvirt] [PATCH] xen: Remove unused 'cfg' 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 X-MC-Unique: dB6V3vhIO826iN9pZVkdXg-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Refactoring of the XML parser left few instances of the libxlDriverConfig object unused. Remove them. Signed-off-by: Peter Krempa --- Pushed under the build-breaker rule as it makes clang unhappy. src/libxl/libxl_domain.c | 1 - tests/xlconfigtest.c | 1 - tests/xmconfigtest.c | 1 - 3 files changed, 3 deletions(-) diff --git a/src/libxl/libxl_domain.c b/src/libxl/libxl_domain.c index ff9502d3bb..915aaeb8b0 100644 --- a/src/libxl/libxl_domain.c +++ b/src/libxl/libxl_domain.c @@ -1547,7 +1547,6 @@ libxlDomainDefCheckABIStability(libxlDriverPrivatePtr= driver, { virDomainDefPtr migratableDefSrc =3D NULL; virDomainDefPtr migratableDefDst =3D NULL; - g_autoptr(libxlDriverConfig) cfg =3D libxlDriverConfigGet(driver); bool ret =3D false; if (!(migratableDefSrc =3D virDomainDefCopy(src, driver->xmlopt, NULL,= true)) || diff --git a/tests/xlconfigtest.c b/tests/xlconfigtest.c index 3c0469be85..4e4b28cd34 100644 --- a/tests/xlconfigtest.c +++ b/tests/xlconfigtest.c @@ -72,7 +72,6 @@ testCompareParseXML(const char *xlcfg, const char *xml, b= ool replaceVars) int ret =3D -1; virDomainDefPtr def =3D NULL; char *replacedXML =3D NULL; - g_autoptr(libxlDriverConfig) cfg =3D libxlDriverConfigGet(driver); if (VIR_ALLOC_N(gotxlcfgData, wrote) < 0) goto fail; diff --git a/tests/xmconfigtest.c b/tests/xmconfigtest.c index 7e324eb5d2..6bd18d0fe1 100644 --- a/tests/xmconfigtest.c +++ b/tests/xmconfigtest.c @@ -45,7 +45,6 @@ testCompareParseXML(const char *xmcfg, const char *xml) virConnectPtr conn =3D NULL; int wrote =3D 4096; virDomainDefPtr def =3D NULL; - g_autoptr(libxlDriverConfig) cfg =3D libxlDriverConfigGet(driver); if (VIR_ALLOC_N(gotxmcfgData, wrote) < 0) goto fail; --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list