From nobody Mon Feb 9 17:57:40 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.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 205.139.110.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=1576749967; cv=none; d=zohomail.com; s=zohoarc; b=QdQsO0o4GWXRdsLA9HJlkU+yHN8ecB7bbnZDGjavkI5ddRExtm+gB0LgPcqhmvs6FfbQQ10tEXBnfsKP/GZUTV0/sGJon5a2RCayUsreqbNP8Es7nQYey5GyHjTi9f03ib6sQ9nhwWesekKXKWi9x8K1Iqkzqdrz469EEtJ6pdw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576749967; h=Content-Type:Content-Transfer-Encoding:Cc: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=RqBF11sxtr38VArrIDir44Xuw53/8oLTYYoZmbOvw+8=; b=Wn+cm5zGnNtCszlBa61NFvDNS5/gcPrMHbVx6IbmtRDwesUAr1XFsHAmL6HpjzkSB6e5tpMtepVPa1HeztJyNO0yVNldu1elvDeONpJ01d8EZRl4VegFJPR7Ulchq0aIkTZJ7+VjVxsWFm8GCLNS6J0QFhJISMPdz7ylxQrdk1s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.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 [205.139.110.120]) by mx.zohomail.com with SMTPS id 1576749967526695.5812012042337; Thu, 19 Dec 2019 02:06:07 -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-401-4swLhZ6bOD2G1uSKg0TZhw-1; Thu, 19 Dec 2019 05:05:41 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4AFE0800584; Thu, 19 Dec 2019 10:05:31 +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 20D995C54A; Thu, 19 Dec 2019 10:05:31 +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 CDE4F827EF; Thu, 19 Dec 2019 10:05:30 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBJA5GOx010941 for ; Thu, 19 Dec 2019 05:05:16 -0500 Received: by smtp.corp.redhat.com (Postfix) id 7E74826E4E; Thu, 19 Dec 2019 10:05:16 +0000 (UTC) Received: from laerte.redhat.com (unknown [10.43.2.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id D0DD026DF9; Thu, 19 Dec 2019 10:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1576749966; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=RqBF11sxtr38VArrIDir44Xuw53/8oLTYYoZmbOvw+8=; b=Vq4u5dZfVCAogUihZAbNIK+OMHo+UVeKa2RcI7RuhrnacFs2xRKLA8J1G0osIlwMUNraj8 +SgV2bcEyI92vgU6MmCrl/HOYfKLxf6KU3JLuydxiBwSfQLSPtpG37xfIZmyPyeWAApXML +iXuWYH8oq6IjKNRrNqg5+fhCxRjiRY= From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= To: libvir-list@redhat.com Date: Thu, 19 Dec 2019 11:04:23 +0100 Message-Id: <20191219100447.210836-19-fidencio@redhat.com> In-Reply-To: <20191219100447.210836-1-fidencio@redhat.com> References: <20191219100447.210836-1-fidencio@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= Subject: [libvirt] [PATCH 18/42] qemu: Don't check the output of virGetUserConfigDirectory() 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.16 X-MC-Unique: 4swLhZ6bOD2G1uSKg0TZhw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) virGetUserConfigDirectory() *never* *ever* returns NULL, making the checks for it completely unnecessary. Signed-off-by: Fabiano Fid=C3=AAncio Reviewed-by: J=C3=A1n Tomko --- src/qemu/qemu_conf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 634c65095e..aa96d50e41 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -177,8 +177,7 @@ virQEMUDriverConfigPtr virQEMUDriverConfigNew(bool priv= ileged) =20 cfg->swtpmStateDir =3D g_strdup_printf("%s/swtpm", cfg->stateDir); =20 - if (!(cfg->configBaseDir =3D virGetUserConfigDirectory())) - return NULL; + cfg->configBaseDir =3D virGetUserConfigDirectory(); =20 cfg->libDir =3D g_strdup_printf("%s/qemu/lib", cfg->configBaseDir); cfg->saveDir =3D g_strdup_printf("%s/qemu/save", cfg->configBaseDi= r); --=20 2.24.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list