From dd5d9dcef333c5de208388dc8a42e7eae68a4d32 Mon Sep 17 00:00:00 2001 From: Benjamin Gilbert Date: Mon, 4 Aug 2014 13:29:56 -0400 Subject: [PATCH] Revert "lvm: Fix segfault if a VG contains no LVs" Avoid merge conflict with 25d7de9 in 5.4 branch, per #603. This reverts commit 45805cf888cda0e840d774f1d42cd21525a722ea. --- src/lvm.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lvm.c b/src/lvm.c index 107766c3..cb073321 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -119,8 +119,6 @@ static void vg_read(vg_t vg, char const *vg_name) lvm_submit (vg_name, "free", lvm_vg_get_free_size(vg)); lvs = lvm_vg_list_lvs(vg); - if (lvs == NULL) - return; dm_list_iterate_items(lvl, lvs) { name = lvm_lv_get_name(lvl->lv); attrs = get_lv_property_string(lvl->lv, "lv_attr"); -- 2.30.2