[libvirt PATCH 12/12] util: remove virFirewallOnceInit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is no longer anything to initialize at binary startup time.

Signed-off-by: Laine Stump <laine@xxxxxxxxxx>
---
 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 {
 
 static virMutex ruleLock = VIR_MUTEX_INITIALIZER;
 
-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 = g_new0(virFirewall, 1);
+    virFirewall *firewall = g_new0(virFirewall, 1);
 
     return firewall;
 }
-- 
2.33.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux