summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2008-01-27 07:36:48 +0300
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-04-24 00:13:37 +0400
commit6a85fa3adddd3a74bd5b94c4b72668d307b88377 (patch)
treef7e89f37ccfe1b5db09aa2478f2baecabbaef009 /fs/nfsd
parent0836f587258c2a24bfdc8810ad2327e7f354b6c7 (diff)
downloadlinux-6a85fa3adddd3a74bd5b94c4b72668d307b88377.tar.xz
nfsd4: kill unnecessary check in preprocess_stateid_op
This condition is always true. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index b83b58da0cc0..a40d1ec52fea 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -2052,7 +2052,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
renew_client(stp->st_stateowner->so_client);
if (filpp)
*filpp = stp->st_vfs_file;
- } else if (dp) {
+ } else {
if ((status = nfs4_check_delegmode(dp, flags)))
goto out;
renew_client(dp->dl_client);