]> xenbits.xensource.com Git - libvirt.git/commit
storage: Cleanup virStorageBackendLogicalFindPoolSourcesFunc
authorJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 11:39:50 +0000 (06:39 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit813e7759834202f78d0f9419c80353b00685c827
treeb3cbae072804a357e6f65b817459a08c0951973c
parent8a69cbc1813c7fd716ce1d6c146136fa36083aaf
storage: Cleanup virStorageBackendLogicalFindPoolSourcesFunc

Rather than have two error paths, let's use a @retval value and
VIR_STEAL_PTR on @vgname and @pvname to unity the exit path through
the error label.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_logical.c