[PATCH 06/16] nfsd: remove superfluous assignment from nfsd_lookup
J. Bruce Fields
bfields at fieldses.org
Fri May 18 17:27:59 EDT 2007
From: J. Bruce Fields <bfields at citi.umich.edu>
The "err" variable will only be used in the final return, which always
happens after either the preceding
err = fh_compose(...);
or after the following
err = nfserrno(host_err);
So the earlier assignment to err is ignored.
Signed-off-by: "J. Bruce Fields" <bfields at citi.umich.edu>
---
fs/nfsd/vfs.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index 7e6aa24..1692830 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -168,8 +168,6 @@ nfsd_lookup(struct svc_rqst *rqstp, struct svc_fh *fhp, const char *name,
exp = fhp->fh_export;
exp_get(exp);
- err = nfserr_acces;
-
/* Lookup the name, but don't follow links */
if (isdotent(name, len)) {
if (len==1)
--
1.5.2.rc3
More information about the NFSv4
mailing list