[PATCH] util: Remove unnecessary initialization

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux