1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

lvmlockd: fix unreachable code

This commit is contained in:
David Teigland 2015-07-08 11:02:11 -05:00
parent 2566bdfbc3
commit de13abdfdf

View File

@ -920,9 +920,9 @@ static int lm_unlock(struct lockspace *ls, struct resource *r, struct action *ac
int rv;
if (ls->lm_type == LD_LM_DLM)
return lm_unlock_dlm(ls, r, r_version, lmu_flags);
rv = lm_unlock_dlm(ls, r, r_version, lmu_flags);
else if (ls->lm_type == LD_LM_SANLOCK)
return lm_unlock_sanlock(ls, r, r_version, lmu_flags);
rv = lm_unlock_sanlock(ls, r, r_version, lmu_flags);
else
return -1;