Skip to contentSkip to conversation

NFSD: Cleanup unused variable in nfsd_setuser()

PATCH Applied Kinglong Mee 1 participant 1 message May 23, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/5 NFSD: Cleanup unused variable in nfsd_setuser()

commit 8f6c5ffc8987f4f5b5a3e9d557d94bbf3a9bf216 have remove the last using of "ret", just remove it right now.

---
 fs/nfsd/auth.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fs/nfsd/auth.c +1 -3
index 1042325..72f4482 100644
@@ -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;
 }
 
Signature · 1 line
1.9.3