diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2014-05-23 08:53:44 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-05-30 17:32:21 -0400 |
commit | 61a27f08a63ee9460653633d8a9cc5a09dcb9aa5 (patch) | |
tree | a522b6b591a0ceea3a4e5ea027bdbf296e129872 | |
parent | 0faed901c680b153ca090a766ceda699b55993eb (diff) |
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>
-rw-r--r-- | fs/nfsd/auth.c | 4 |
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) | |||
24 | struct cred *new; | 24 | struct cred *new; |
25 | int i; | 25 | int i; |
26 | int flags = nfsexp_flags(rqstp, exp); | 26 | int flags = nfsexp_flags(rqstp, exp); |
27 | int ret; | ||
28 | 27 | ||
29 | validate_process_creds(); | 28 | validate_process_creds(); |
30 | 29 | ||
@@ -85,8 +84,7 @@ int nfsd_setuser(struct svc_rqst *rqstp, struct svc_export *exp) | |||
85 | return 0; | 84 | return 0; |
86 | 85 | ||
87 | oom: | 86 | oom: |
88 | ret = -ENOMEM; | ||
89 | abort_creds(new); | 87 | abort_creds(new); |
90 | return ret; | 88 | return -ENOMEM; |
91 | } | 89 | } |
92 | 90 | ||