On 12/17/24 16:31, Daniel P. Berrangé wrote:
This cannot ever return NULL
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
src/bhyve/bhyve_driver.c | 6 ++----
src/conf/domain_conf.c | 7 ++-----
src/conf/virdomainobjlist.c | 9 +++------
src/libxl/libxl_driver.c | 6 ++----
src/lxc/lxc_controller.c | 4 +---
src/lxc/lxc_driver.c | 10 ++--------
src/qemu/qemu_driver.c | 22 ++++++----------------
7 files changed, 18 insertions(+), 46 deletions(-)
One more occurrence:
diff --git i/src/conf/domain_conf.c w/src/conf/domain_conf.c
index cae5ba9df1..3c19c89af9 100644
--- i/src/conf/domain_conf.c
+++ w/src/conf/domain_conf.c
@@ -29002,8 +29002,7 @@ virDomainDefSaveXML(virDomainDef *def,
if (!configDir)
return 0;
- if ((configFile = virDomainConfigFile(configDir, def->name)) == NULL)
- return -1;
+ configFile = virDomainConfigFile(configDir, def->name);
if (g_mkdir_with_parents(configDir, 0777) < 0) {
virReportSystemError(errno,
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Michal