summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c7d196d)
raw | patch | inline | side by side (parent: c7d196d)
author | Chad Malfait <cmalfait@cisco.com> | |
Sun, 7 Apr 2013 02:34:09 +0000 (20:34 -0600) | ||
committer | Chad Malfait <cmalfait@cisco.com> | |
Sun, 7 Apr 2013 02:34:09 +0000 (20:34 -0600) |
src/volume.c | patch | blob | history |
diff --git a/src/volume.c b/src/volume.c
index 3cb6d28cd963dead5e1a8dfdeba3335ac49c61da..b5424aa0dafbfd112ad2c945a9bc1d537cbd75f1 100644 (file)
--- a/src/volume.c
+++ b/src/volume.c
{
lvm_t lvm;
vg_t vg;
- int status = 0;
struct dm_list *vg_names;
struct lvm_str_list *name_list;
lvm = lvm_init(NULL);
if (!lvm) {
- status = lvm_errno(lvm);
ERROR("volume plugin: lvm_init failed: %s", lvm_errmsg(lvm));
+ return (lvm_errno(lvm));
}
vg_names = lvm_list_vg_names(lvm);
if (!vg_names) {
- status = lvm_errno(lvm);
ERROR("volume plugin lvm_list_vg_name failed %s", lvm_errmsg(lvm));
+ return (lvm_errno(lvm));
}
dm_list_iterate_items(name_list, vg_names) {