1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

reporter: correcting failure return value

This function do use ECMD_ return values,
so use ECMD_FAILED as initial value - used for internal error paths
This commit is contained in:
Zdenek Kabelac 2024-04-09 17:40:45 +02:00
parent f404d8ccb7
commit 9dad6f202c

View File

@ -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, struct volume_group *vg, report_type_t type,
int do_lv_info, int do_lv_seg_status) int do_lv_info, int do_lv_seg_status)
{ {
int r = 0; int r = ECMD_FAILED;
switch (type) { switch (type) {
case VGS: 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, struct logical_volume *lv, report_type_t type,
int do_lv_info, int do_lv_seg_status) int do_lv_info, int do_lv_seg_status)
{ {
int r = 0; int r = ECMD_FAILED;
switch (type) { switch (type) {
case LVS: 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, struct physical_volume *pv, report_type_t type,
int do_lv_info, int do_lv_seg_status) int do_lv_info, int do_lv_seg_status)
{ {
int r = 0; int r = ECMD_FAILED;
switch (type) { switch (type) {
case PVS: case PVS: