提交 1c71e22e 编写于 作者: C Christoph Hellwig 提交者: Linus Torvalds

[PATCH] udf_find_entry() cleanup

udf_find_entry can never be called with a NULL argument, so we shouldn't
check for it.
Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 532a39a3
......@@ -164,11 +164,7 @@ udf_find_entry(struct inode *dir, struct dentry *dentry,
uint32_t extoffset, elen, offset;
struct buffer_head *bh = NULL;
if (!dir)
return NULL;
size = (udf_ext0_offset(dir) + dir->i_size) >> 2;
f_pos = (udf_ext0_offset(dir) >> 2);
fibh->soffset = fibh->eoffset = (f_pos & ((dir->i_sb->s_blocksize - 1) >> 2)) << 2;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册