]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Remove uneeded dentry assignment
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:50:28 +0000 (18:50 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:50:28 +0000 (18:50 -0800)
From: James Morris <jmorris@redhat.com>

It seems to me that this dentry assignment in open_namei is not needed per
the patch below.  On this path, dentry is not referenced.

fs/namei.c

index b3aa2a22c8f0b439bce2b509a862ae3817665c9e..5302c5ed75c4285c64cceab8141ccbf06f6b9077 100644 (file)
@@ -1260,7 +1260,6 @@ int open_namei(const char * pathname, int flag, int mode, struct nameidata *nd)
                error = path_lookup(pathname, lookup_flags(flag)|LOOKUP_OPEN, nd);
                if (error)
                        return error;
-               dentry = nd->dentry;
                goto ok;
        }