]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network_conf.c: remove dead store to "err"
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 17:15:51 +0000 (19:15 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 15:23:10 +0000 (17:23 +0200)
* src/network_conf.c (virNetworkDefParseXML): ...and its decl.

src/network_conf.c

index 58a4f322b44aed2eed2772893a360c6fe2f9022f..3764bb409f16c12ac710bdf003cf7aa3a216bb83 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * network_conf.c: network XML handling
  *
- * Copyright (C) 2006-2008 Red Hat, Inc.
+ * Copyright (C) 2006-2009 Red Hat, Inc.
  * Copyright (C) 2006-2008 Daniel P. Berrange
  *
  * This library is free software; you can redistribute it and/or
@@ -329,8 +329,7 @@ virNetworkDefParseXML(virConnectPtr conn,
     /* Extract network uuid */
     tmp = virXPathString(conn, "string(./uuid[1])", ctxt);
     if (!tmp) {
-        int err;
-        if ((err = virUUIDGenerate(def->uuid))) {
+        if (virUUIDGenerate(def->uuid)) {
             virNetworkReportError(conn, VIR_ERR_INTERNAL_ERROR,
                                   "%s", _("Failed to generate UUID"));
             goto error;