summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuthu-vigneshwaran <mvignesh@redhat.com>2016-08-11 17:07:29 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-08-29 05:11:46 -0700
commitddcf0183adebe528a3b069358a1f856eeeae5857 (patch)
tree496757306b51aff809561197e92ff86f143eb577
parent494d310a78fb423559d520040eebd8f091d3e529 (diff)
cli,rpc : Removing logically dead code
CID = 1357865, 1357866 Change-Id: I05eb345e9357d889872d259a600759392b188bb3 BUG: 789278 Signed-off-by: Muthu-vigneshwaran <mvignesh@redhat.com> Reviewed-on: http://review.gluster.org/15148 Tested-by: Muthu Vigneshwaran Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Prashanth Pai <ppai@redhat.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Reviewed-by: Manikandan Selvaganesh <mselvaga@redhat.com>
-rw-r--r--cli/src/cli-cmd-parser.c4
-rw-r--r--rpc/xdr/src/glusterfs3.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index e0a92ddbc6e..be0a8e756d5 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -2814,10 +2814,6 @@ cli_cmd_gsync_set_parse (const char **words, int wordcount, dict_t **options)
ret = -1;
goto out;
}
- if (!slavei || !masteri) {
- ret = -1;
- goto out;
- }
ret = dict_set_uint32 (dict, "reset-sync-time", _gf_true);
if (ret)
goto out;
diff --git a/rpc/xdr/src/glusterfs3.h b/rpc/xdr/src/glusterfs3.h
index 1977b4810b7..60f4242e345 100644
--- a/rpc/xdr/src/glusterfs3.h
+++ b/rpc/xdr/src/glusterfs3.h
@@ -371,8 +371,6 @@ gf_proto_cache_invalidation_from_upcall (xlator_t *this,
ret = 0;
GF_PROTOCOL_DICT_SERIALIZE (this, gf_c_data->dict, &(gf_c_req->xdata).xdata_val,
(gf_c_req->xdata).xdata_len, ret, out);
- if (ret > 0)
- ret = -ret;
out:
return ret;
}