Skip to content

Commit

Permalink
NFSD: Cleanup unused variable in nfsd_setuser()
Browse files Browse the repository at this point in the history
Commit 8f6c5ff ("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>
  • Loading branch information
Kinglong Mee authored and J. Bruce Fields committed May 30, 2014
1 parent 0faed90 commit 61a27f0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/nfsd/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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;
}

0 comments on commit 61a27f0

Please sign in to comment.