[libvirt] [PATCH] util: Remove unnecessary initialization

John Ferlan jferlan at redhat.com
Fri Feb 2 20:00:40 UTC 2018


VIR_ALLOC will already initialize, so no need to do it again.

Signed-off-by: John Ferlan <jferlan at 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




More information about the libvir-list mailing list