提交 0ac385bd 编写于 作者: E Eric Blake

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.
上级 20ce0651
......@@ -529,11 +529,10 @@ int virNetServerAddService(virNetServerPtr srv,
#if HAVE_AVAHI
if (mdnsEntryName) {
int port = virNetServerServiceGetPort(svc);
virNetServerMDNSEntryPtr entry;
if (!(entry = virNetServerMDNSAddEntry(srv->mdnsGroup,
mdnsEntryName,
port)))
if (!virNetServerMDNSAddEntry(srv->mdnsGroup,
mdnsEntryName,
port))
goto error;
}
#endif
......
......@@ -472,7 +472,7 @@ virSysinfoRead(void) {
ret->nmemory = 0;
ret->memory = NULL;
if ((base = virSysinfoParseMemory(base, ret)) == NULL)
if (virSysinfoParseMemory(base, ret) == NULL)
goto no_memory;
cleanup:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册