summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2012-10-18 22:44:21 +0800
committerJ. Bruce Fields <bfields@redhat.com>2012-11-07 19:22:31 -0500
commit01f6c8fd949f3a25a2617e6e1579a5c974b1cabf (patch)
tree4e234e38129ef49a15362cc0e245a3852aad5c12 /fs/nfsd/nfs4state.c
parent216b6cbdcbd86b1db0754d58886b466ae31f5a63 (diff)
downloadblackbird-op-linux-01f6c8fd949f3a25a2617e6e1579a5c974b1cabf.tar.gz
blackbird-op-linux-01f6c8fd949f3a25a2617e6e1579a5c974b1cabf.zip
nfsd4: remove unused variable in nfsd4_delegreturn()
The variable inode is initialized but never used otherwise, so remove the unused variable. dpatch engine is used to auto generate this patch. (https://github.com/weiyj/dpatch) Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4state.c')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index d0237f872cc4..620ff8143751 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3807,12 +3807,10 @@ nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
struct nfs4_delegation *dp;
stateid_t *stateid = &dr->dr_stateid;
struct nfs4_stid *s;
- struct inode *inode;
__be32 status;
if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0)))
return status;
- inode = cstate->current_fh.fh_dentry->d_inode;
nfs4_lock_state();
status = nfsd4_lookup_stateid(stateid, NFS4_DELEG_STID, &s, cstate->minorversion);
OpenPOWER on IntegriCloud