aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4state.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2012-03-30 09:46:21 -0400
committerJ. Bruce Fields <bfields@redhat.com>2012-04-11 17:54:58 -0400
commit03af42c59e5fc073fa93b7fe44e80161acb22772 (patch)
tree49223a7baa044ae615a3559075a8995dfb1befb0 /fs/nfsd/nfs4state.c
parent9dc4e6c4d1182d34604ea40fef641775f5b15456 (diff)
nfsd: trivial: remove unused variable from nfsd4_lock
..."fp" is set but never used. Signed-off-by: Jeff Layton <jlayton@redhat.com> 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 1841f8bf845e..a822e31de4f8 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4055,7 +4055,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
4055 struct nfs4_openowner *open_sop = NULL; 4055 struct nfs4_openowner *open_sop = NULL;
4056 struct nfs4_lockowner *lock_sop = NULL; 4056 struct nfs4_lockowner *lock_sop = NULL;
4057 struct nfs4_ol_stateid *lock_stp; 4057 struct nfs4_ol_stateid *lock_stp;
4058 struct nfs4_file *fp;
4059 struct file *filp = NULL; 4058 struct file *filp = NULL;
4060 struct file_lock file_lock; 4059 struct file_lock file_lock;
4061 struct file_lock conflock; 4060 struct file_lock conflock;
@@ -4123,7 +4122,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
4123 goto out; 4122 goto out;
4124 } 4123 }
4125 lock_sop = lockowner(lock_stp->st_stateowner); 4124 lock_sop = lockowner(lock_stp->st_stateowner);
4126 fp = lock_stp->st_file;
4127 4125
4128 lkflg = setlkflg(lock->lk_type); 4126 lkflg = setlkflg(lock->lk_type);
4129 status = nfs4_check_openmode(lock_stp, lkflg); 4127 status = nfs4_check_openmode(lock_stp, lkflg);