diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index ddf03252ab..06c1fcf5e5 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -5935,10 +5935,7 @@ virDomainDefCollectBootOrder(virDomainDef *def G_GNUC_UNUSED, static int virDomainDefBootOrderPostParse(virDomainDef *def) { - g_autoptr(GHashTable) bootHash = NULL; - - if (!(bootHash = virHashNew(NULL))) - return -1; + g_autoptr(GHashTable) bootHash = virHashNew(NULL); if (virDomainDeviceInfoIterate(def, virDomainDefCollectBootOrder, bootHash) < 0) return -1;