VIR_ALLOC will already initialize, so no need to do it again.
Signed-off-by: John Ferlan <jferlan(a)redhat.com>
---
This is something Coverity noted a while ago that I found
sitting in one of my branches that I'd forgotten about.
Pushed as trivial.
src/util/virsysinfo.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/util/virsysinfo.c b/src/util/virsysinfo.c
index 855580d44..e8d337191 100644
--- a/src/util/virsysinfo.c
+++ b/src/util/virsysinfo.c
@@ -597,8 +597,6 @@ virSysinfoReadS390(void)
goto no_memory;
}
- ret->nprocessor = 0;
- ret->processor = NULL;
if (virSysinfoParseS390Processor(outbuf, ret) < 0)
goto no_memory;
--
2.13.6
Show replies by date