summaryrefslogtreecommitdiff
path: root/daemons/cmirrord
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2010-12-20 13:58:38 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2010-12-20 13:58:38 +0000
commit35ce2b332b6b91147fb758ea76a21115ff442d66 (patch)
tree4088aa5992881c28346f4a1d489ec49a27f7fb37 /daemons/cmirrord
parent9d3be13f4fde09c55d73d7315db7882b4fad041a (diff)
downloadlvm2-35ce2b332b6b91147fb758ea76a21115ff442d66.tar.gz
Removed unused pointer
Pointer 'duplicate' is unused.
Diffstat (limited to 'daemons/cmirrord')
-rw-r--r--daemons/cmirrord/functions.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/daemons/cmirrord/functions.c b/daemons/cmirrord/functions.c
index d773c4254..de807936d 100644
--- a/daemons/cmirrord/functions.c
+++ b/daemons/cmirrord/functions.c
@@ -366,7 +366,6 @@ static int _clog_ctr(char *uuid, uint64_t luid,
uint64_t region_size;
uint64_t region_count;
struct log_c *lc = NULL;
- struct log_c *duplicate;
enum sync log_sync = DEFAULTSYNC;
uint32_t block_on_error = 0;
@@ -448,8 +447,8 @@ static int _clog_ctr(char *uuid, uint64_t luid,
strncpy(lc->uuid, uuid, DM_UUID_LEN);
lc->luid = luid;
- if ((duplicate = get_log(lc->uuid, lc->luid)) ||
- (duplicate = get_pending_log(lc->uuid, lc->luid))) {
+ if (get_log(lc->uuid, lc->luid) ||
+ get_pending_log(lc->uuid, lc->luid)) {
LOG_ERROR("[%s/%" PRIu64 "u] Log already exists, unable to create.",
SHORT_UUID(lc->uuid), lc->luid);
dm_free(lc);