From: Benjamin Gilbert Date: Wed, 16 Apr 2014 13:47:56 +0000 (-0400) Subject: lvm: Change unused return value to void X-Git-Tag: collectd-5.5.0~232^2~6 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=55cd1f9a139bffe54cc43a96fefeb085b65f5e25;p=collectd.git lvm: Change unused return value to void --- diff --git a/src/lvm.c b/src/lvm.c index 6ef3a7b2..606acc70 100644 --- a/src/lvm.c +++ b/src/lvm.c @@ -45,7 +45,7 @@ static void lvm_submit (char const *plugin_instance, char const *type_instance, plugin_dispatch_values (&vl); } -static int vg_read(vg_t vg, char const *vg_name) +static void vg_read(vg_t vg, char const *vg_name) { struct dm_list *lvs; struct lvm_lv_list *lvl; @@ -56,8 +56,6 @@ static int vg_read(vg_t vg, char const *vg_name) dm_list_iterate_items(lvl, lvs) { lvm_submit(vg_name, lvm_lv_get_name(lvl->lv), lvm_lv_get_size(lvl->lv)); } - - return (0); } static int lvm_read(void)