diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2010-12-20 13:58:38 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2010-12-20 13:58:38 +0000 |
commit | 35ce2b332b6b91147fb758ea76a21115ff442d66 (patch) | |
tree | 4088aa5992881c28346f4a1d489ec49a27f7fb37 /daemons/cmirrord | |
parent | 9d3be13f4fde09c55d73d7315db7882b4fad041a (diff) | |
download | lvm2-35ce2b332b6b91147fb758ea76a21115ff442d66.tar.gz |
Removed unused pointer
Pointer 'duplicate' is unused.
Diffstat (limited to 'daemons/cmirrord')
-rw-r--r-- | daemons/cmirrord/functions.c | 5 |
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); |