From: J. Bruce Fields Date: Tue, 17 Jul 2007 11:04:44 +0000 (-0700) Subject: knfsd: nfsd: remove superfluous assignment from nfsd_lookup X-Git-Tag: v2.6.23-rc1~648 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=87548c37c8bdbf98aea002c9c04e4dc8aa27fe1b;p=linux-2.6-omap-h63xx.git 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" Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c index 0a18149ce96..ec6aaf8b0e3 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)