mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 15:27:47 +00:00
interface_conf.c: remove a dead-store and declaration
* src/interface_conf.c (virInterfaceDefParseDhcp): Remove unused "old".
This commit is contained in:
parent
25b20b7103
commit
f2a46c848c
@ -228,11 +228,9 @@ static int
|
|||||||
virInterfaceDefParseDhcp(virConnectPtr conn, virInterfaceDefPtr def,
|
virInterfaceDefParseDhcp(virConnectPtr conn, virInterfaceDefPtr def,
|
||||||
xmlNodePtr dhcp, xmlXPathContextPtr ctxt) {
|
xmlNodePtr dhcp, xmlXPathContextPtr ctxt) {
|
||||||
char *tmp;
|
char *tmp;
|
||||||
xmlNodePtr old;
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
def->proto.dhcp = 1;
|
def->proto.dhcp = 1;
|
||||||
old = ctxt->node;
|
|
||||||
ctxt->node = dhcp;
|
ctxt->node = dhcp;
|
||||||
/* Not much to do in the current version */
|
/* Not much to do in the current version */
|
||||||
tmp = virXPathString(conn, "string(./@peerdns)", ctxt);
|
tmp = virXPathString(conn, "string(./@peerdns)", ctxt);
|
||||||
|
Loading…
Reference in New Issue
Block a user