Commit:     87548c37c8bdbf98aea002c9c04e4dc8aa27fe1b
Parent:     df547efb03e3e8f9ea726e1d07fbbd6fd0706cd7
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 17 04:04:44 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 17 10:23:07 2007 -0700

    knfsd: nfsd: remove superfluous assignment from nfsd_lookup
    The "err" variable will only be used in the final return, which always 
    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" <[EMAIL PROTECTED]>
    Signed-off-by: Neil Brown <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 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 0a18149..ec6aaf8 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;
-       err = nfserr_acces;
        /* Lookup the name, but don't follow links */
        if (isdotent(name, len)) {
                if (len==1)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to