summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2019-06-01 18:36:55 +0530
committerSanju Rakonde <srakonde@redhat.com>2019-06-01 18:43:52 +0530
commit6fd8281ac9af58609979f660ece58c2ed1100e72 (patch)
tree4d20217d277327dfde81539c72b348721df46b36 /xlators/mgmt/glusterd/src
parentf8f09178bb890924a8050b466cc2e7a0a30e35a7 (diff)
glusterd: remove trivial conditions
updates: bz#1193929 Change-Id: Ieb5e35d454498bc389972f9f15fe46b640f1b97d Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-rpc-ops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
index 86ae48c6d6f..ab0544310db 100644
--- a/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
+++ b/xlators/mgmt/glusterd/src/glusterd-rpc-ops.c
@@ -1932,7 +1932,6 @@ glusterd_stage_op(call_frame_t *frame, xlator_t *this, void *data)
glusterd_peerinfo_t *peerinfo = NULL;
glusterd_conf_t *priv = NULL;
dict_t *dict = NULL;
- gf_boolean_t is_alloc = _gf_true;
uuid_t *txn_id = NULL;
if (!this) {
@@ -1991,7 +1990,7 @@ glusterd_stage_op(call_frame_t *frame, xlator_t *this, void *data)
(xdrproc_t)xdr_gd1_mgmt_stage_op_req);
out:
- if ((_gf_true == is_alloc) && req.buf.buf_val)
+ if (req.buf.buf_val)
GF_FREE(req.buf.buf_val);
gf_msg_debug(this ? this->name : "glusterd", 0, "Returning %d", ret);
@@ -2010,7 +2009,6 @@ glusterd_commit_op(call_frame_t *frame, xlator_t *this, void *data)
glusterd_peerinfo_t *peerinfo = NULL;
glusterd_conf_t *priv = NULL;
dict_t *dict = NULL;
- gf_boolean_t is_alloc = _gf_true;
uuid_t *txn_id = NULL;
if (!this) {
@@ -2068,7 +2066,7 @@ glusterd_commit_op(call_frame_t *frame, xlator_t *this, void *data)
(xdrproc_t)xdr_gd1_mgmt_commit_op_req);
out:
- if ((_gf_true == is_alloc) && req.buf.buf_val)
+ if (req.buf.buf_val)
GF_FREE(req.buf.buf_val);
gf_msg_debug(this ? this->name : "glusterd", 0, "Returning %d", ret);