summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr.c
diff options
context:
space:
mode:
authorSachidananda <sac@gluster.com>2010-08-24 03:59:05 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-24 03:09:52 -0700
commitedc92766239de2a3054df9e9ad2607a8955c6d0b (patch)
treeedc668397bccf189bd3d16d251003c4d853c3b76 /xlators/cluster/afr/src/afr.c
parentb4ce27c974c02c15bc51373cd93a11de593ceade (diff)
cluster/afr: Clean up dead assignments.
Signed-off-by: Sachidananda Urs <sac@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1084 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1084
Diffstat (limited to 'xlators/cluster/afr/src/afr.c')
-rw-r--r--xlators/cluster/afr/src/afr.c8
1 files changed, 4 insertions, 4 deletions
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;
}