mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
network_conf.c: remove dead store to "err"
* src/network_conf.c (virNetworkDefParseXML): ...and its decl.
This commit is contained in:
parent
a7848c4502
commit
9323717b47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user