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

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

 



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

diff --git a/src/conf/nwfilter_ipaddrmap.c b/src/conf/nwfilter_ipaddrmap.c
index d6facd749e..bc21c80536 100644
--- a/src/conf/nwfilter_ipaddrmap.c
+++ b/src/conf/nwfilter_ipaddrmap.c
@@ -150,9 +150,6 @@ int
 virNWFilterIPAddrMapInit(void)
 {
     ipAddressMap = virHashNew(virNWFilterVarValueHashFree);
-    if (!ipAddressMap)
-        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