From 420f5204cf01d63de4d206102e2fa71fbabe6f1a Mon Sep 17 00:00:00 2001 From: Tim Wiederhake Date: Tue, 6 Jul 2021 10:16:42 +0200 Subject: [PATCH] virNWFilterBuildAll: `virHashNew` cannot return NULL Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- src/nwfilter/nwfilter_gentech_driver.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nwfilter/nwfilter_gentech_driver.c b/src/nwfilter/nwfilter_gentech_driver.c index 8aa1db23d3..da4f71daf1 100644 --- a/src/nwfilter/nwfilter_gentech_driver.c +++ b/src/nwfilter/nwfilter_gentech_driver.c @@ -1007,8 +1007,7 @@ virNWFilterBuildAll(virNWFilterDriverState *driver, VIR_DEBUG("Build all filters newFilters=%d", newFilters); if (newFilters) { - if (!(data.skipInterfaces = virHashNew(NULL))) - return -1; + data.skipInterfaces = virHashNew(NULL); data.step = STEP_APPLY_NEW; if (virNWFilterBindingObjListForEach(driver->bindings,