From 3394c555171775c6f74c2c556265b044a70a2fa9 Mon Sep 17 00:00:00 2001 From: Prasanna Kumar Kalever Date: Sat, 15 Aug 2015 01:29:31 +0530 Subject: glusterd: clean dead initializations This patch cleans unused variable initialization as well as their declarations which are no where used in the code Change-Id: I784165fc6e91297758079699dd9583d5203b7793 BUG: 1253831 Signed-off-by: Prasanna Kumar Kalever Reviewed-on: http://review.gluster.org/11929 Tested-by: Prasanna Kumar Kalever Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Jeff Darcy --- xlators/mgmt/glusterd/src/glusterd-mgmt.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'xlators/mgmt/glusterd/src/glusterd-mgmt.c') diff --git a/xlators/mgmt/glusterd/src/glusterd-mgmt.c b/xlators/mgmt/glusterd/src/glusterd-mgmt.c index c83e31ea8ed..092283a7daf 100644 --- a/xlators/mgmt/glusterd/src/glusterd-mgmt.c +++ b/xlators/mgmt/glusterd/src/glusterd-mgmt.c @@ -504,7 +504,6 @@ gd_mgmt_v3_lock (glusterd_op_t op, dict_t *op_ctx, uuid_t recv_uuid) { gd1_mgmt_v3_lock_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; int32_t ret = -1; xlator_t *this = NULL; uuid_t *peerid = NULL; @@ -809,7 +808,6 @@ gd_mgmt_v3_pre_validate_req (glusterd_op_t op, dict_t *op_ctx, { int32_t ret = -1; gd1_mgmt_v3_pre_val_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; xlator_t *this = NULL; uuid_t *peerid = NULL; @@ -1100,7 +1098,6 @@ gd_mgmt_v3_brick_op_req (glusterd_op_t op, dict_t *op_ctx, { int32_t ret = -1; gd1_mgmt_v3_brick_op_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; xlator_t *this = NULL; uuid_t *peerid = {0,}; @@ -1349,7 +1346,6 @@ gd_mgmt_v3_commit_req (glusterd_op_t op, dict_t *op_ctx, { int32_t ret = -1; gd1_mgmt_v3_commit_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; xlator_t *this = NULL; uuid_t *peerid = NULL; @@ -1580,7 +1576,6 @@ gd_mgmt_v3_post_validate_req (glusterd_op_t op, int32_t op_ret, dict_t *op_ctx, { int32_t ret = -1; gd1_mgmt_v3_post_val_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; xlator_t *this = NULL; uuid_t *peerid = NULL; @@ -1799,7 +1794,6 @@ gd_mgmt_v3_unlock (glusterd_op_t op, dict_t *op_ctx, { int32_t ret = -1; gd1_mgmt_v3_unlock_req req = {{0},}; - glusterd_conf_t *conf = THIS->private; xlator_t *this = NULL; uuid_t *peerid = NULL; -- cgit