From b4ce27c974c02c15bc51373cd93a11de593ceade Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Tue, 24 Aug 2010 02:53:01 +0000 Subject: cluster/afr: Clean up dead assignments. Signed-off-by: Sachidananda Urs Signed-off-by: Anand V. Avati BUG: 1086 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1086 --- xlators/cluster/afr/src/afr-dir-read.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/xlators/cluster/afr/src/afr-dir-read.c b/xlators/cluster/afr/src/afr-dir-read.c index 6125ac0dd..a6b13f7c9 100644 --- a/xlators/cluster/afr/src/afr-dir-read.c +++ b/xlators/cluster/afr/src/afr-dir-read.c @@ -54,10 +54,8 @@ int afr_examine_dir_sh_unwind (call_frame_t *frame, xlator_t *this) { afr_local_t *local = NULL; - afr_self_heal_t *sh = NULL; local = frame->local; - sh = &local->self_heal; afr_set_opendir_done (this, local->fd->inode); @@ -228,13 +226,9 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno, fd_t *fd) { - afr_private_t *priv = NULL; afr_local_t * local = NULL; int call_count = -1; - int ret = 0; - - priv = this->private; LOCK (&frame->lock); { @@ -251,7 +245,7 @@ afr_opendir_cbk (call_frame_t *frame, void *cookie, if (call_count == 0) { if (local->op_ret == 0) { - ret = afr_fd_ctx_set (this, local->fd); + afr_fd_ctx_set (this, local->fd); if (!afr_is_opendir_done (this, local->fd->inode)) { @@ -476,7 +470,6 @@ afr_readdir_cbk (call_frame_t *frame, void *cookie, { afr_private_t * priv = NULL; afr_local_t * local = NULL; - xlator_t ** children = NULL; gf_dirent_t * entry = NULL; gf_dirent_t * tmp = NULL; @@ -484,10 +477,7 @@ afr_readdir_cbk (call_frame_t *frame, void *cookie, int child_index = -1; priv = this->private; - children = priv->children; - local = frame->local; - child_index = (long) cookie; if (op_ret != -1) { -- cgit