diff options
author | Sachidananda <sac@gluster.com> | 2010-08-17 04:59:49 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2010-08-22 22:27:30 -0700 |
commit | 8f18a47a14ffc4456e470b15f6ad14f9dd10cd79 (patch) | |
tree | bfc07d2de78266137c6636158f0ba714b8c9838c | |
parent | a437f594608cd307ca2c25871b79966de54cc93f (diff) |
xlators/nfs: nfs3.c - remove dead assignments.
Removed dead assignments and unused variables reported by clang.
One of the reports uncovers a minor bug in gnfs.
> Dead store Dead assignment xlators/nfs/server/src/nfs3.c 2860 1
A separate bug is logged for the above report and assigned to Shehjar.
Signed-off-by: Sachidananda Urs <sac@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 1114 ()
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1114
-rw-r--r-- | xlators/nfs/server/src/nfs3.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xlators/nfs/server/src/nfs3.c b/xlators/nfs/server/src/nfs3.c index 7aadcae3efb..bbbbca89f2b 100644 --- a/xlators/nfs/server/src/nfs3.c +++ b/xlators/nfs/server/src/nfs3.c @@ -405,12 +405,10 @@ nfs3svc_getattr_lookup_cbk (call_frame_t *frame, void *cookie, xlator_t *this, struct iatt *buf, dict_t *xattr, struct iatt *postparent) { - rpcsvc_request_t *req = NULL; nfsstat3 status = NFS3_OK; nfs3_call_state_t *cs = NULL; cs = frame->local; - req = cs->req; if (op_ret == -1) status = nfs3_errno_to_nfsstat3 (op_errno); @@ -429,12 +427,10 @@ int32_t nfs3svc_getattr_stat_cbk (call_frame_t *frame, void *cookie, xlator_t *this, int32_t op_ret, int32_t op_errno, struct iatt *buf) { - rpcsvc_request_t *req = NULL; nfsstat3 status = NFS3_OK; nfs3_call_state_t *cs = NULL; cs = frame->local; - req = cs->req; if (op_ret == -1) status = nfs3_errno_to_nfsstat3 (op_errno); @@ -639,7 +635,6 @@ nfs3svc_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, cs->preparent = *preop; } - ret = 0; /* Only truncate if the size is not already same as the requested * truncation and also only if this is not a directory. */ @@ -1914,7 +1909,6 @@ nfs3svc_write_vecsizer (rpcsvc_request_t *req, ssize_t *readsize, int *newbuf) *newbuf = 1; ret = 0; } - ret = 0; rpcerr: return ret; |