summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIraj Jamali <ijamali@redhat.com>2018-11-23 01:58:44 +0530
committerAmar Tumballi <amarts@redhat.com>2018-12-14 12:05:28 +0000
commit5ec271c316ec6538130d25148179721c595dd5a2 (patch)
tree5e5ee9bbe77d9d301e66359c53bf1e84a435bede
parenta6a5f7aa6f05d21db7e8b4fbc39f2c6f843aac39 (diff)
glusterfsd: Fix coverity issue
Problem reported: value assigned to a variable is never used Fixes CID : 1274230 updates: bz#789278 Change-Id: I7afcb411876dea81c6820c5b31ae0a2896f9ca15 Signed-off-by: Iraj Jamali <ijamali@redhat.com>
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 6127d4a298d..33c824c132e 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -1642,7 +1642,6 @@ glusterfs_handle_barrier(rpcsvc_request_t *req)
xlator_t *old_THIS = NULL;
dict_t *dict = NULL;
gf_boolean_t barrier = _gf_true;
- gf_boolean_t barrier_err = _gf_false;
xlator_list_t *trav;
GF_ASSERT(req);
@@ -1713,8 +1712,6 @@ glusterfs_handle_barrier(rpcsvc_request_t *req)
barrier = dict_get_str_boolean(dict, "barrier", _gf_true);
if (barrier)
goto submit_reply;
- else
- barrier_err = _gf_true;
}
/* Reset THIS so that we have it correct in case of an error below
@@ -1739,8 +1736,6 @@ glusterfs_handle_barrier(rpcsvc_request_t *req)
goto submit_reply;
}
- if (barrier_err)
- ret = -1;
submit_reply:
THIS = old_THIS;