1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

gcc: all paths will set ret

Set success on common path.
Fixes random failure on writecache uncaching path.
This commit is contained in:
Zdenek Kabelac 2019-10-21 12:25:04 +02:00
parent f61d828c86
commit 644186e920

View File

@ -4757,7 +4757,7 @@ static int _lvconvert_split_cache_single(struct cmd_context *cmd,
if (lvremove_single(cmd, lv_fast, NULL) != ECMD_PROCESSED)
return ECMD_FAILED;
}
ret = 1;
} else if (lv_is_cache(lv_main) && lv_is_cache_vol(lv_fast)) {
if (cmd->command->command_enum == lvconvert_split_and_remove_cache_CMD) {
ret = _lvconvert_split_and_remove_cachevol(cmd, lv_main, lv_fast);