nfsd: Remove unused values in nfs4_setlease()

This change “nfsd: Remove unused values in nfs4_setlease()” in Linux kernel is authored by Kinglong Mee <kinglongmee [at]> on Mon Jul 13 17:33:24 2015 +0800.

nfsd: Remove unused values in nfs4_setlease()

Signed-off-by: Kinglong Mee <>
Signed-off-by: J. Bruce Fields <>

This Linux change may have been applied to various maintained Linux releases and you can find Linux releases including commit efde6b4.

There are 3 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 fs/nfsd/nfs4state.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index a44be22..780fd6e 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)

The commit for this change in Linux stable tree is efde6b4 (patch).

Leave a Reply

Your email address will not be published. Required fields are marked *