[PATCH 0/9] several small cleanups in virpci.c et. al.

Ján Tomko jtomko at redhat.com
Mon Oct 26 16:39:03 UTC 2020


On a Tuesday in 2020, Laine Stump wrote:
>These started with a couple small cleanups to functions I was going to
>change the API for, but then I decided not to change the API, and just
>didn't want to waste the effort spent cleaning them up.
>

Thank you.

>Laine Stump (9):
>  util: simplify virHostdevPCISysfsPath()
>  util: simplify virPCIFile() and its callers
>  util: simplify virPCIDriverDir() and its callers
>  util: simplify virPCIProbeStubDriver()
>  util: avoid manual VIR_FREE of a g_autofree pointer in virPCIGetName()
>  util: use more g_autofree in virpci.c
>  util: remove unneeded cleanup:/ret in virpci.c
>  util: don't use virPCIGetSysfsFile()
>  util: remove unused function virPCIGetSysfsFile()
>
> src/hypervisor/virhostdev.c |  10 +--
> src/libvirt_private.syms    |   1 -
> src/util/virnetdev.c        |   6 +-
> src/util/virpci.c           | 146 ++++++++++++------------------------
> src/util/virpci.h           |   4 -

> 5 files changed, 53 insertions(+), 114 deletions(-)

Beautiful.

Jano

>
>-- 
>2.26.2
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201026/4a1b8377/attachment-0001.sig>


More information about the libvir-list mailing list