]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: remove extraneous call to VIR_DIR_CLOSE()
authorLaine Stump <laine@redhat.com>
Mon, 26 Oct 2020 02:28:09 +0000 (22:28 -0400)
committerLaine Stump <laine@redhat.com>
Tue, 3 Nov 2020 03:01:36 +0000 (22:01 -0500)
commit21f659d952c687aaab08bb62c8d253157b4e1d8e
tree77bb62e878c53d916aa3dd1d772d5443e314faac
parent59fc1e35eb5e1878bd8eccf959ae439311925a14
storage: remove extraneous call to VIR_DIR_CLOSE()

VIR_DIR_CLOSE(dir) is called in the middle of
virStorageBackendRefreshLocal(), which is okay, but redundant - there
is no reference to dir between that call and the end of the function,
where VIR_DIR_CLOSE() is called again. Remove the extra call in the
middle to simplify the function and make the conversion to g_autoptr
trivial/mechanical.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/storage/storage_util.c