Skip to contentSkip to conversation

master - sanlock: set proper return value

PATCH Zdenek Kabelac 1 participant 1 message Feb 19, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e87fa7c9cef53013efa46033ad037822c70c1bb9
Commit:        e87fa7c9cef53013efa46033ad037822c70c1bb9
Parent:        1671b83585a6ee49448376c20834a9e89936a7f3
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Feb 17 11:23:19 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Feb 19 16:44:10 2018 +0100

sanlock: set proper return value

In last patch one error path missed to assign correct return value. Assing it directly to 'ret' as log_error was already reported.

---
 daemons/lvmlockd/lvmlockd-sanlock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
daemons/lvmlockd/lvmlockd-sanlock.c +1 -1
index dd88d24..a91218b 100644
@@ -1121,7 +1121,7 @@ int lm_prepare_lockspace_sanlock(struct lockspace *ls)
 		goto fail;
 	}
 
-	if ((rv = build_dm_path(disk_path, SANLK_PATH_LEN, ls->vg_name, lock_lv_name)))
+	if ((ret = build_dm_path(disk_path, SANLK_PATH_LEN, ls->vg_name, lock_lv_name)))
 		goto fail;
 
 	/*