[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] domain_conf.c: remove dead store



Another dead store:

>From 06c5ed162cbdcfec74461e9d09c82244242cc6a2 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering redhat com>
Date: Fri, 4 Sep 2009 17:27:34 +0200
Subject: [PATCH] domain_conf.c: remove dead store

* src/domain_conf.c (virDomainSaveXML): ...and decl of "err".
---
 src/domain_conf.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/domain_conf.c b/src/domain_conf.c
index 8dde5dd..4e8ad37 100644
--- a/src/domain_conf.c
+++ b/src/domain_conf.c
@@ -4456,12 +4456,11 @@ int virDomainSaveXML(virConnectPtr conn,
     char *configFile = NULL;
     int fd = -1, ret = -1;
     size_t towrite;
-    int err;

     if ((configFile = virDomainConfigFile(conn, configDir, def->name)) == NULL)
         goto cleanup;

-    if ((err = virFileMakePath(configDir))) {
+    if (virFileMakePath(configDir)) {
         virReportSystemError(conn, errno,
                              _("cannot create config directory '%s'"),
                              configDir);
--
1.6.4.2.409.g85dc3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]