From: Kinglong Mee <kinglongmee@gmail.com>
Date: Fri, 23 May 2014 12:53:44 +0000 (+0800)
Subject: NFSD: Cleanup unused variable in nfsd_setuser()
X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=61a27f08a63ee9460653633d8a9cc5a09dcb9aa5;p=openwrt%2Fstaging%2Fblogic.git

NFSD: Cleanup unused variable in nfsd_setuser()

Commit 8f6c5ffc8987 ("kernel/groups.c: remove return value of
set_groups") removed the last use of "ret".

Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
---

diff --git a/fs/nfsd/auth.c b/fs/nfsd/auth.c
index 104232571491..72f44823adbb 100644
--- a/fs/nfsd/auth.c
+++ b/fs/nfsd/auth.c
@@ -24,7 +24,6 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
 	struct cred *new;
 	int i;
 	int flags = nfsexp_flags(rqstp, exp);
-	int ret;
 
 	validate_process_creds();
 
@@ -85,8 +84,7 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp)
 	return 0;
 
 oom:
-	ret = -ENOMEM;
 	abort_creds(new);
-	return ret;
+	return -ENOMEM;
 }