Commit 2ff6b1c2 authored by Pekka Enberg's avatar Pekka Enberg Committed by Linus Torvalds

[PATCH] isofs: remove d_splice_alias NULL check from isofs_lookup

Remove redundant NULL check in isofs_lookup() as d_splice_alias() can take
NULL inode as input.
Signed-off-by: default avatarPekka Enberg <[email protected]>
Signed-off-by: default avatarAndrew Morton <[email protected]>
Signed-off-by: default avatarLinus Torvalds <[email protected]>
parent ba7fe369
......@@ -185,8 +185,5 @@ struct dentry *isofs_lookup(struct inode * dir, struct dentry * dentry, struct n
if (inode)
return d_splice_alias(inode, dentry);
d_add(dentry, inode);
return NULL;
return d_splice_alias(inode, dentry);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment