From 9dad6f202cb882c61f7364b531478fda462505c0 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 9 Apr 2024 17:40:45 +0200 Subject: [PATCH] reporter: correcting failure return value This function do use ECMD_ return values, so use ECMD_FAILED as initial value - used for internal error paths --- tools/reporter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/reporter.c b/tools/reporter.c index 764dfdecc..de6a37277 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -549,7 +549,7 @@ static int _report_all_in_vg(struct cmd_context *cmd, struct processing_handle * struct volume_group *vg, report_type_t type, int do_lv_info, int do_lv_seg_status) { - int r = 0; + int r = ECMD_FAILED; switch (type) { case VGS: @@ -591,7 +591,7 @@ static int _report_all_in_lv(struct cmd_context *cmd, struct processing_handle * struct logical_volume *lv, report_type_t type, int do_lv_info, int do_lv_seg_status) { - int r = 0; + int r = ECMD_FAILED; switch (type) { case LVS: @@ -616,7 +616,7 @@ static int _report_all_in_pv(struct cmd_context *cmd, struct processing_handle * struct physical_volume *pv, report_type_t type, int do_lv_info, int do_lv_seg_status) { - int r = 0; + int r = ECMD_FAILED; switch (type) { case PVS: