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>
This commit is contained in:
parent
a6a5f7aa6f
commit
5ec271c316
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user