summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2014-05-23 20:53:44 +0800
committerJ. Bruce Fields <bfields@redhat.com>2014-05-30 17:32:21 -0400
commit61a27f08a63ee9460653633d8a9cc5a09dcb9aa5 (patch)
treea522b6b591a0ceea3a4e5ea027bdbf296e129872 /fs/nfsd
parent0faed901c680b153ca090a766ceda699b55993eb (diff)
downloadlinux-61a27f08a63ee9460653633d8a9cc5a09dcb9aa5.tar.bz2
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>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/auth.c4
1 files changed, 1 insertions, 3 deletions
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;
}