]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
interface_conf.c: remove a dead-store and declaration
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 08:55:55 +0000 (10:55 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:59:29 +0000 (18:59 +0200)
* src/interface_conf.c (virInterfaceDefParseDhcp): Remove unused "old".

src/interface_conf.c

index a74d17e211296b7da2489a807bf6b98149222b56..96e0710a82b7dd14d99f81b616fbb835ebc54b47 100644 (file)
@@ -228,11 +228,9 @@ static int
 virInterfaceDefParseDhcp(virConnectPtr conn, virInterfaceDefPtr def,
                          xmlNodePtr dhcp, xmlXPathContextPtr ctxt) {
     char *tmp;
-    xmlNodePtr old;
     int ret = 0;
 
     def->proto.dhcp = 1;
-    old = ctxt->node;
     ctxt->node = dhcp;
     /* Not much to do in the current version */
     tmp = virXPathString(conn, "string(./@peerdns)", ctxt);