Re: [libvirt] [PATCH 07/10] util: Initialize virResctrlInfo struct right away

2018-06-07 Thread Ján Tomko
On Thu, Jun 07, 2018 at 03:54:28PM +0200, Martin Kletzander wrote: There is no need to have virResctrlGetInfo() when it must be called after virResctrlInfoNew() anyway, otherwise it's just an unusable object. When we wrap the logic inside the New() function we'll save some calls later as well.

[libvirt] [PATCH 07/10] util: Initialize virResctrlInfo struct right away

2018-06-07 Thread Martin Kletzander
There is no need to have virResctrlGetInfo() when it must be called after virResctrlInfoNew() anyway, otherwise it's just an unusable object. When we wrap the logic inside the New() function we'll save some calls later as well. Signed-off-by: Martin Kletzander --- src/conf/capabilities.c | 2