From nobody Tue Feb 10 01:14:41 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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.133.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=1639338553; cv=none; d=zohomail.com; s=zohoarc; b=Fd+fgYRDf342ytEEWHDUReFqfSffGe3kg3s4qyl9BZ9koQzpXjAn7i1RLFk14CkhoAR7uCKEnlxEsz7DEVqpBUINbl2dlQpYGOyuUC+fceJZCGLDgyg1hEqBzm1bYDB5EfCxoLx3bP//MriAY+mioEUbu8T0zrw1h25QR2PmNxY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1639338553; 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=WhWmXYGPwj/Knap+EwzrTYP8JzLuMbb47RBw/wwT/SQ=; b=cpHnohMvFPqmOv14FaPvXeV6J3N+R6fRURekejIXsc65wheWtcRkxDXU7QdimIS1rC8lRJAUTwczDxyNbaQKLkfbY/MPbJ4UT46+mcFUGxbAUJ0P1UmSXE+qpHYdOC5jKgw5mg0+j6ns5rn8R3j2RILtuZEG5MZxeXhjhjKdRL0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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.133.124]) by mx.zohomail.com with SMTPS id 1639338553649509.8643850926394; Sun, 12 Dec 2021 11:49:13 -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-362-noevF32yPJ2OUWIsdC-dJg-1; Sun, 12 Dec 2021 14:49:09 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 026871853038; Sun, 12 Dec 2021 19:49:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D770460FDD; Sun, 12 Dec 2021 19:49:03 +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 AA24118045C5; Sun, 12 Dec 2021 19:49:03 +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 1BCJmbhx018911 for ; Sun, 12 Dec 2021 14:48:38 -0500 Received: by smtp.corp.redhat.com (Postfix) id EFAF65BE03; Sun, 12 Dec 2021 19:48:37 +0000 (UTC) Received: from vhost3.router.laine.org (unknown [10.2.16.52]) by smtp.corp.redhat.com (Postfix) with ESMTP id BA8235D6D7 for ; Sun, 12 Dec 2021 19:48:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639338552; 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=WhWmXYGPwj/Knap+EwzrTYP8JzLuMbb47RBw/wwT/SQ=; b=HXvXt+X/SxJrOGa7RhY+4sMf50nv1XPzqLxKF6f7OB4gzyNwbXWXTNqnWba+MNWyXwKU/u mbNnzdbPW3c/RQGB+j6Q93BeHAqCYVc/a5xIGneaQXCPHFm/ED3lZzY2oJFM/JvZd7VFQs xWq4W+xeIXcM7TS3hgXgxOjZbvcL1d8= X-MC-Unique: noevF32yPJ2OUWIsdC-dJg-1 From: Laine Stump To: libvir-list@redhat.com Subject: [libvirt PATCH 12/12] util: remove virFirewallOnceInit() Date: Sun, 12 Dec 2021 14:48:30 -0500 Message-Id: <20211212194830.292379-13-laine@redhat.com> In-Reply-To: <20211212194830.292379-1-laine@redhat.com> References: <20211212194830.292379-1-laine@redhat.com> 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.79 on 10.5.11.12 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: 1639338554546100001 Content-Type: text/plain; charset="utf-8" There is no longer anything to initialize at binary startup time. Signed-off-by: Laine Stump --- src/util/virfirewall.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/util/virfirewall.c b/src/util/virfirewall.c index 98d78857df..70092f2ef6 100644 --- a/src/util/virfirewall.c +++ b/src/util/virfirewall.c @@ -82,15 +82,6 @@ struct _virFirewall { =20 static virMutex ruleLock =3D VIR_MUTEX_INITIALIZER; =20 -static int -virFirewallOnceInit(void) -{ - return 0; -} - -VIR_ONCE_GLOBAL_INIT(virFirewall); - - static virFirewallGroup * virFirewallGroupNew(void) { @@ -110,12 +101,7 @@ virFirewallGroupNew(void) */ virFirewall *virFirewallNew(void) { - virFirewall *firewall; - - if (virFirewallInitialize() < 0) - return NULL; - - firewall =3D g_new0(virFirewall, 1); + virFirewall *firewall =3D g_new0(virFirewall, 1); =20 return firewall; } --=20 2.33.1