From 35ce2b332b6b91147fb758ea76a21115ff442d66 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 20 Dec 2010 13:58:38 +0000 Subject: [PATCH] Removed unused pointer Pointer 'duplicate' is unused. --- daemons/cmirrord/functions.c | 5 ++--- 1 file 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);