提交 fd03b099 编写于 作者: J J. Bruce Fields

nfsd4: remove unneeded local variable

We no longer need stidp.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
上级 dc9bf700
...@@ -2056,7 +2056,6 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl ...@@ -2056,7 +2056,6 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
{ {
struct nfs4_stateid *stp = NULL; struct nfs4_stateid *stp = NULL;
struct nfs4_delegation *dp = NULL; struct nfs4_delegation *dp = NULL;
stateid_t *stidp;
struct inode *ino = current_fh->fh_dentry->d_inode; struct inode *ino = current_fh->fh_dentry->d_inode;
__be32 status; __be32 status;
...@@ -2083,8 +2082,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl ...@@ -2083,8 +2082,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
dprintk("NFSD: delegation stateid not found\n"); dprintk("NFSD: delegation stateid not found\n");
goto out; goto out;
} }
stidp = &dp->dl_stateid; status = check_stateid_generation(stateid, &dp->dl_stateid);
status = check_stateid_generation(stateid, stidp);
if (status) if (status)
goto out; goto out;
status = nfs4_check_delegmode(dp, flags); status = nfs4_check_delegmode(dp, flags);
...@@ -2105,8 +2103,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl ...@@ -2105,8 +2103,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
goto out; goto out;
if (!stp->st_stateowner->so_confirmed) if (!stp->st_stateowner->so_confirmed)
goto out; goto out;
stidp = &stp->st_stateid; status = check_stateid_generation(stateid, &stp->st_stateid);
status = check_stateid_generation(stateid, stidp);
if (status) if (status)
goto out; goto out;
status = nfs4_check_openmode(stp, flags); status = nfs4_check_openmode(stp, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册