From 8f18a47a14ffc4456e470b15f6ad14f9dd10cd79 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Tue, 17 Aug 2010 04:59:49 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 1114 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1114 --- xlators/nfs/server/src/nfs3.c | 6 ------ 1 file changed, 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; -- cgit