virNWFilterLearnInit: `virHashNew` cannot return NULL

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Tim Wiederhake 2021-07-06 10:27:16 +02:00
parent 4d9c5524b4
commit c7560d0141
1 changed files with 0 additions and 8 deletions

View File

@ -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;
}