From 5ec271c316ec6538130d25148179721c595dd5a2 Mon Sep 17 00:00:00 2001 From: Iraj Jamali Date: Fri, 23 Nov 2018 01:58:44 +0530 Subject: 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 --- glusterfsd/src/glusterfsd-mgmt.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'glusterfsd') 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; -- cgit