1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-07 17:28:15 +00:00

build: remove dead variables

Detected by Coverity.  No real harm in leaving these, but fixing
them cuts down on the noise for future analysis.

* src/rpc/virnetserver.c (virNetServerAddService): Delete unused
entry.
* src/util/sysinfo.c (virSysinfoRead): Delete dead assignment to
base.
This commit is contained in:
Eric Blake 2011-06-30 17:05:19 -06:00
parent 20ce065124
commit 0ac385bd6c
2 changed files with 4 additions and 5 deletions

View File

@ -529,11 +529,10 @@ int virNetServerAddService(virNetServerPtr srv,
#if HAVE_AVAHI #if HAVE_AVAHI
if (mdnsEntryName) { if (mdnsEntryName) {
int port = virNetServerServiceGetPort(svc); int port = virNetServerServiceGetPort(svc);
virNetServerMDNSEntryPtr entry;
if (!(entry = virNetServerMDNSAddEntry(srv->mdnsGroup, if (!virNetServerMDNSAddEntry(srv->mdnsGroup,
mdnsEntryName, mdnsEntryName,
port))) port))
goto error; goto error;
} }
#endif #endif

View File

@ -472,7 +472,7 @@ virSysinfoRead(void) {
ret->nmemory = 0; ret->nmemory = 0;
ret->memory = NULL; ret->memory = NULL;
if ((base = virSysinfoParseMemory(base, ret)) == NULL) if (virSysinfoParseMemory(base, ret) == NULL)
goto no_memory; goto no_memory;
cleanup: cleanup: