diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2007-07-17 07:04:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 13:23:07 -0400 |
commit | 87548c37c8bdbf98aea002c9c04e4dc8aa27fe1b (patch) | |
tree | 353ccf93af0b1d34967f141a10f1b0089a9e7813 /fs | |
parent | df547efb03e3e8f9ea726e1d07fbbd6fd0706cd7 (diff) |
knfsd: nfsd: remove superfluous assignment from nfsd_lookup
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@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | 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 0a18149ce963..ec6aaf8b0e36 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, | |||
168 | exp = fhp->fh_export; | 168 | exp = fhp->fh_export; |
169 | exp_get(exp); | 169 | exp_get(exp); |
170 | 170 | ||
171 | err = nfserr_acces; | ||
172 | |||
173 | /* Lookup the name, but don't follow links */ | 171 | /* Lookup the name, but don't follow links */ |
174 | if (isdotent(name, len)) { | 172 | if (isdotent(name, len)) { |
175 | if (len==1) | 173 | if (len==1) |