diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-07-13 17:33:24 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-08-10 16:05:51 -0400 |
commit | efde6b4d4e668f16bc91e9a462e1ec3c99d41136 (patch) | |
tree | 33db31a164c424e8baee88e92df61b17b4b29726 /fs/nfsd | |
parent | 871860225b32920dd685c6da488956f1c75bf676 (diff) | |
download | linux-stable-efde6b4d4e668f16bc91e9a462e1ec3c99d41136.tar.gz linux-stable-efde6b4d4e668f16bc91e9a462e1ec3c99d41136.tar.bz2 linux-stable-efde6b4d4e668f16bc91e9a462e1ec3c99d41136.zip |
nfsd: Remove unused values in nfs4_setlease()
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index a44be220eca1..780fd6e1478d 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -3925,7 +3925,7 @@ static struct file_lock *nfs4_alloc_init_lease(struct nfs4_file *fp, int flag) static int nfs4_setlease(struct nfs4_delegation *dp) { struct nfs4_file *fp = dp->dl_stid.sc_file; - struct file_lock *fl, *ret; + struct file_lock *fl; struct file *filp; int status = 0; @@ -3940,7 +3940,6 @@ static int nfs4_setlease(struct nfs4_delegation *dp) return -EBADF; } fl->fl_file = filp; - ret = fl; status = vfs_setlease(filp, fl->fl_type, &fl, NULL); if (fl) locks_free_lock(fl); |