Skip to content

Commit

Permalink
[PATCH] udf_find_entry() cleanup
Browse files Browse the repository at this point in the history
udf_find_entry can never be called with a NULL argument, so we shouldn't
check for it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Jun 30, 2005
1 parent 532a39a commit 1c71e22
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/udf/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1c71e22

Please sign in to comment.