[libvirt PATCH 10/10] virNWFilterLearnInit: `virHashNew` cannot return NULL

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

 



Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 src/nwfilter/nwfilter_learnipaddr.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c
index 907e4b2513..2177c5540b 100644
--- a/src/nwfilter/nwfilter_learnipaddr.c
+++ b/src/nwfilter/nwfilter_learnipaddr.c
@@ -774,16 +774,8 @@ virNWFilterLearnInit(void)
 
     VIR_DEBUG("Initializing IP address learning");
     threadsTerminate = false;
-
     pendingLearnReq = virHashNew(freeLearnReqEntry);
-    if (!pendingLearnReq)
-        return -1;
-
     ifaceLockMap = virHashNew(g_free);
-    if (!ifaceLockMap) {
-        virNWFilterLearnShutdown();
-        return -1;
-    }
 
     return 0;
 }
-- 
2.31.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