From: Tim Wiederhake Date: Tue, 6 Jul 2021 08:16:42 +0000 (+0200) Subject: virNWFilterBuildAll: `virHashNew` cannot return NULL X-Git-Tag: v7.6.0-rc1~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=420f5204cf01d63de4d206102e2fa71fbabe6f1a;p=thirdparty%2Flibvirt.git virNWFilterBuildAll: `virHashNew` cannot return NULL Signed-off-by: Tim Wiederhake Reviewed-by: Peter Krempa --- 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,