From edc92766239de2a3054df9e9ad2607a8955c6d0b Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Tue, 24 Aug 2010 03:59:05 +0000 Subject: cluster/afr: Clean up dead assignments. Signed-off-by: Sachidananda Urs Signed-off-by: Anand V. Avati BUG: 1084 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1084 --- xlators/cluster/afr/src/afr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xlators/cluster/afr/src/afr.c') diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c index 9d06cd034..4f158151b 100644 --- a/xlators/cluster/afr/src/afr.c +++ b/xlators/cluster/afr/src/afr.c @@ -370,7 +370,7 @@ init (xlator_t *this) if (!priv->child_up) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -379,7 +379,7 @@ init (xlator_t *this) if (!priv->children) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -389,7 +389,7 @@ init (xlator_t *this) if (!priv->pending_key) { gf_log (this->name, GF_LOG_ERROR, "Out of memory."); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } @@ -404,7 +404,7 @@ init (xlator_t *this) if (-1 == ret) { gf_log (this->name, GF_LOG_ERROR, "asprintf failed to set pending key"); - op_errno = ENOMEM; + ret = -ENOMEM; goto out; } -- cgit