[libvirt] [PATCH] util: Remove unnecessary initialization

2 Feb
2018
2 Feb
'18
3 p.m.
VIR_ALLOC will already initialize, so no need to do it again. Signed-off-by: John Ferlan <jferlan@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
2775
Age (days ago)
2775
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Ferlan