* [PATCH] isofs: remove d_splice_alias NULL check from isofs_lookup
@ 2006-01-12 14:59 Pekka J Enberg
0 siblings, 0 replies; only message in thread
From: Pekka J Enberg @ 2006-01-12 14:59 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
From: Pekka Enberg <penberg@cs.helsinki.fi>
This patch removes redundant NULL check in isofs_lookup() as d_splice_alias()
can take NULL inode as input.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
fs/isofs/namei.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
Index: 2.6/fs/isofs/namei.c
===================================================================
--- 2.6.orig/fs/isofs/namei.c
+++ 2.6/fs/isofs/namei.c
@@ -185,8 +185,5 @@ struct dentry *isofs_lookup(struct inode
}
}
unlock_kernel();
- if (inode)
- return d_splice_alias(inode, dentry);
- d_add(dentry, inode);
- return NULL;
+ return d_splice_alias(inode, dentry);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-12 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 14:59 [PATCH] isofs: remove d_splice_alias NULL check from isofs_lookup Pekka J Enberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).