[libvirt] [PATCH v2 32/32] util: Introduce VIR_DEFINE_AUTOPTR_FUNC for virStorageSource

Ján Tomko jtomko at redhat.com
Mon Feb 11 14:22:05 UTC 2019


On Fri, Feb 08, 2019 at 01:37:26PM -0500, John Ferlan wrote:
>Let's make use of the auto __cleanup capabilities cleaning up any
>now unnecessary goto paths.
>
>Signed-off-by: John Ferlan <jferlan at redhat.com>
>---
> src/conf/domain_conf.c                |   3 +-
> src/qemu/qemu_domain.c                |   3 +-
> src/qemu/qemu_driver.c                |   9 +-
> src/qemu/qemu_migration.c             |   3 +-
> src/storage/storage_backend_gluster.c |   3 +-
> src/storage/storage_util.c            |  25 ++---
> src/util/virstoragefile.c             | 141 +++++++++++---------------
> src/util/virstoragefile.h             |   1 +
> tests/qemublocktest.c                 |   6 +-
> tests/virstoragetest.c                |  50 ++++-----
> 10 files changed, 97 insertions(+), 147 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: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190211/8b0fa8ef/attachment-0001.sig>


More information about the libvir-list mailing list