Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a27f08 authored by Kinglong Mee's avatar Kinglong Mee Committed by J. Bruce Fields
Browse files

NFSD: Cleanup unused variable in nfsd_setuser()



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

Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 0faed901
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
}