diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2012-10-18 10:44:21 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-11-07 19:22:31 -0500 |
commit | 01f6c8fd949f3a25a2617e6e1579a5c974b1cabf (patch) | |
tree | 4e234e38129ef49a15362cc0e245a3852aad5c12 /fs | |
parent | 216b6cbdcbd86b1db0754d58886b466ae31f5a63 (diff) |
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')
-rw-r--r-- | fs/nfsd/nfs4state.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index d0237f872cc..620ff814375 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, | |||
3807 | struct nfs4_delegation *dp; | 3807 | struct nfs4_delegation *dp; |
3808 | stateid_t *stateid = &dr->dr_stateid; | 3808 | stateid_t *stateid = &dr->dr_stateid; |
3809 | struct nfs4_stid *s; | 3809 | struct nfs4_stid *s; |
3810 | struct inode *inode; | ||
3811 | __be32 status; | 3810 | __be32 status; |
3812 | 3811 | ||
3813 | if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) | 3812 | if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) |
3814 | return status; | 3813 | return status; |
3815 | inode = cstate->current_fh.fh_dentry->d_inode; | ||
3816 | 3814 | ||
3817 | nfs4_lock_state(); | 3815 | nfs4_lock_state(); |
3818 | status = nfsd4_lookup_stateid(stateid, NFS4_DELEG_STID, &s, cstate->minorversion); | 3816 | status = nfsd4_lookup_stateid(stateid, NFS4_DELEG_STID, &s, cstate->minorversion); |