diff options
author | Sachidananda <sac@gluster.com> | 2010-08-10 11:16:59 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-11 23:46:45 -0700 |
commit | d30f7058780477239dc8fe1ad691f4661a4988e6 (patch) | |
tree | 685b38db271f49bcea97a45ba32e06c99ec40ed7 /xlators/cluster | |
parent | ca938bbe6f50fc77cbcfb3ca47efef0feb8e7526 (diff) |
Cleanup dead variables.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1085 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1085
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/afr/src/afr-open.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/xlators/cluster/afr/src/afr-open.c b/xlators/cluster/afr/src/afr-open.c index 60d80ea85c5..bc8786155c3 100644 --- a/xlators/cluster/afr/src/afr-open.c +++ b/xlators/cluster/afr/src/afr-open.c @@ -75,7 +75,6 @@ afr_open_cbk (call_frame_t *frame, void *cookie, fd_t *fd) { afr_local_t * local = NULL; - afr_private_t * priv = NULL; int child_index = (long) cookie; @@ -86,7 +85,6 @@ afr_open_cbk (call_frame_t *frame, void *cookie, int call_count = -1; - priv = this->private; local = frame->local; LOCK (&frame->lock); @@ -350,12 +348,10 @@ out: int afr_up_down_flush_post_post_op (call_frame_t *frame, xlator_t *this) { - afr_private_t *priv = NULL; afr_local_t *local = NULL; afr_self_heal_t *sh = NULL; char sh_type_str[256] = {0,}; - priv = this->private; local = frame->local; sh = &local->self_heal; @@ -392,10 +388,8 @@ int afr_up_down_flush_wind (call_frame_t *frame, xlator_t *this) { afr_local_t *local = NULL; - afr_private_t *priv = NULL; local = frame->local; - priv = this->private; local->transaction.resume (frame, this); return 0; @@ -450,17 +444,12 @@ int afr_up_down_flush (call_frame_t *frame, xlator_t *this, fd_t *fd, afr_flush_type type) { - afr_private_t * priv = NULL; afr_local_t * local = NULL; - int op_ret = -1; - VALIDATE_OR_GOTO (frame, out); VALIDATE_OR_GOTO (this, out); VALIDATE_OR_GOTO (this->private, out); - priv = this->private; - local = frame->local; local->op = GF_FOP_FLUSH; @@ -489,7 +478,6 @@ afr_up_down_flush (call_frame_t *frame, xlator_t *this, fd_t *fd, afr_transaction (frame, this, AFR_FLUSH_TRANSACTION); - op_ret = 0; out: return 0; } |