Commit eb36334a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Remove uneeded dentry assignment

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.
parent 530c7720
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment