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

Ján Tomko jtomko at redhat.com
Thu Jun 7 22:34:58 UTC 2018


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.
>
>Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>---
> src/conf/capabilities.c  |  2 +-
> src/libvirt_private.syms |  1 -
> src/util/virresctrl.c    | 15 +++++++++++++--
> src/util/virresctrl.h    |  3 ---
> 4 files changed, 14 insertions(+), 7 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180608/a548bb39/attachment-0001.sig>


More information about the libvir-list mailing list