]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
util: Remove unnecessary initialization
authorJohn Ferlan <jferlan@redhat.com>
Fri, 12 Jan 2018 15:32:41 +0000 (10:32 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 2 Feb 2018 19:56:19 +0000 (14:56 -0500)
VIR_ALLOC will already initialize, so no need to do it again.

src/util/virsysinfo.c

index 855580d446b4f1125eb1a12835a7bee57f1cc0bb..e8d337191244b4e6e4387addc08c636917f6deb4 100644 (file)
@@ -597,8 +597,6 @@ virSysinfoReadS390(void)
         goto no_memory;
     }
 
-    ret->nprocessor = 0;
-    ret->processor = NULL;
     if (virSysinfoParseS390Processor(outbuf, ret) < 0)
         goto no_memory;