diff options
author | David Teigland <teigland@redhat.com> | 2015-07-08 11:02:11 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-07-08 11:02:11 -0500 |
commit | de13abdfdf44c1119ee03c2514dd886191f3d9c3 (patch) | |
tree | 288c8cd72b2cdcc3770faae9dc58fb5e9fc637d2 | |
parent | 2566bdfbc3dd1ca7296d8828bb4235c18e06672e (diff) | |
download | lvm2-de13abdfdf44c1119ee03c2514dd886191f3d9c3.tar.gz |
lvmlockd: fix unreachable code
-rw-r--r-- | daemons/lvmlockd/lvmlockd-core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index b247bb5c5..73a2fb307 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -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; |