]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
network_driver.c: remove dead store to "err"
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 17:37:37 +0000 (19:37 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 7 Sep 2009 16:13:43 +0000 (18:13 +0200)
* src/network_driver.c (networkSetAutostart): ...and its decl.

src/network_driver.c

index 84910ab2023d6b15c96c08f7ca42cdd501d45510..49855bf010229dcae6c131a4172752554e1287c6 100644 (file)
@@ -1428,9 +1428,7 @@ static int networkSetAutostart(virNetworkPtr net,
             goto cleanup;
 
         if (autostart) {
-            int err;
-
-            if ((err = virFileMakePath(driver->networkAutostartDir))) {
+            if (virFileMakePath(driver->networkAutostartDir)) {
                 virReportSystemError(net->conn, errno,
                                      _("cannot create autostart directory '%s'"),
                                      driver->networkAutostartDir);