summaryrefslogtreecommitdiffstats
path: root/lib/locking
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-11-29 11:13:12 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-11-29 11:13:12 +0000
commit73e32260129f53108a690a1d183ffd14d0934bc4 (patch)
tree4411c3b42c177f82956f3bd421483cec7a0e47cf /lib/locking
parent201222ebad3dd13b2ed04c5d510633b66227f8b3 (diff)
downloadlvm2-73e32260129f53108a690a1d183ffd14d0934bc4.tar.gz
lvm2-73e32260129f53108a690a1d183ffd14d0934bc4.tar.xz
lvm2-73e32260129f53108a690a1d183ffd14d0934bc4.zip
Remove dead assignment in _lock_for_cluster
'saved_errno' is not read from this initialization and before its usage is assigned again before _cluster_free_request() call.
Diffstat (limited to 'lib/locking')
-rw-r--r--lib/locking/cluster_locking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/cluster_locking.c b/lib/locking/cluster_locking.c
index a956b1b3..eea9974a 100644
--- a/lib/locking/cluster_locking.c
+++ b/lib/locking/cluster_locking.c
@@ -308,7 +308,7 @@ static int _lock_for_cluster(struct cmd_context *cmd, unsigned char clvmd_cmd,
const char *node = "";
int len;
int dmeventd_mode;
- int saved_errno = errno;
+ int saved_errno;
lvm_response_t *response = NULL;
int num_responses;