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:
parent
20ce065124
commit
0ac385bd6c
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user