summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuthu-vigneshwaran <mvignesh@redhat.com>2016-12-05 21:02:05 +0530
committerNiels de Vos <ndevos@redhat.com>2017-01-07 06:56:47 -0800
commitee6ae7a6d0649c405e8bf096d4781f74494d5263 (patch)
treee04e9f578bc36074cd0609f8741557fbe46f6d60
parent1278f1957cbb44263c510f351875c968319ea3db (diff)
glusterfs : Removing logically dead code
CID = 1356502 BUG: 789278 Change-Id: I11a814addc6607902c12aca8f4efec5741cbd7d3 Signed-off-by: Muthu-vigneshwaran <mvignesh@redhat.com> Reviewed-on: http://review.gluster.org/16028 Tested-by: Muthu Vigneshwaran <muthuvigneshwaran77@gmail.com> Smoke: Gluster Build System <jenkins@build.gluster.org> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Reviewed-by: Niels de Vos <ndevos@redhat.com>
-rw-r--r--rpc/xdr/src/glusterfs3.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/rpc/xdr/src/glusterfs3.h b/rpc/xdr/src/glusterfs3.h
index b74ab933800..3ca608467b9 100644
--- a/rpc/xdr/src/glusterfs3.h
+++ b/rpc/xdr/src/glusterfs3.h
@@ -247,8 +247,6 @@ gf_proto_recall_lease_from_upcall (xlator_t *this,
GF_PROTOCOL_DICT_SERIALIZE (this, tmp->dict,
&(recall_lease->xdata).xdata_val,
(recall_lease->xdata).xdata_len, ret, out);
- if (ret > 0)
- ret = -ret;
out:
return ret;
@@ -410,10 +408,6 @@ gf_proto_cache_invalidation_to_upcall (xlator_t *this,
(gf_c_req->xdata).xdata_val,
(gf_c_req->xdata).xdata_len, ret,
ret, out);
- if (ret > 0) {
- ret = -ret;
- goto out;
- }
/* If no dict was sent, create an empty dict, so that each xlator
* need not check if empty then create new dict. Will be unref'd by the