[libvirt PATCH 04/38] virNWFilterCreateVarsFrom: `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_gentech_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c
index da4f71daf1..dbb6b1f80e 100644
--- a/src/nwfilter/nwfilter_gentech_driver.c
+++ b/src/nwfilter/nwfilter_gentech_driver.c
@@ -200,8 +200,6 @@ virNWFilterCreateVarsFrom(GHashTable *vars1,
                           GHashTable *vars2)
 {
     GHashTable *res = virHashNew(virNWFilterVarValueHashFree);
-    if (!res)
-        return NULL;
 
     if (virNWFilterHashTablePutAll(vars1, res) < 0)
         goto error;
-- 
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