From: Jim Meyering Date: Fri, 4 Sep 2009 17:37:37 +0000 (+0200) Subject: network_driver.c: remove dead store to "err" X-Git-Tag: v0.7.1~69 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=130634dd7c2ef5edbce3b0b247315457c052c15c;p=thirdparty%2Flibvirt.git network_driver.c: remove dead store to "err" * src/network_driver.c (networkSetAutostart): ...and its decl. --- diff --git a/src/network_driver.c b/src/network_driver.c index 84910ab202..49855bf010 100644 --- a/src/network_driver.c +++ b/src/network_driver.c @@ -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);