mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +00:00
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>
This commit is contained in:
parent
216b6cbdcb
commit
01f6c8fd94
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue