nfsd: trivial: remove unused variable from nfsd4_lock
authorJeff Layton <jlayton@redhat.com>
Fri, 30 Mar 2012 13:46:21 +0000 (09:46 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 11 Apr 2012 21:54:58 +0000 (17:54 -0400)
..."fp" is set but never used.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c

index 1841f8bf845e7440bba605f25357a512a8a5b0b0..a822e31de4f8e282bd4b50c8d376bf5b5ba30ce4 100644 (file)
@@ -4055,7 +4055,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
        struct nfs4_openowner *open_sop = NULL;
        struct nfs4_lockowner *lock_sop = NULL;
        struct nfs4_ol_stateid *lock_stp;
-       struct nfs4_file *fp;
        struct file *filp = NULL;
        struct file_lock file_lock;
        struct file_lock conflock;
@@ -4123,7 +4122,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
                        goto out;
        }
        lock_sop = lockowner(lock_stp->st_stateowner);
-       fp = lock_stp->st_file;
 
        lkflg = setlkflg(lock->lk_type);
        status = nfs4_check_openmode(lock_stp, lkflg);