diff options
author | Christoph Hellwig <hch@lst.de> | 2005-06-30 02:59:02 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-30 08:45:11 -0700 |
commit | 1c71e22e4e4b4e7261f147635518d5634136c226 (patch) | |
tree | 738d87d2d80fffd774e2b998e675dbe6d587ca53 /fs/udf | |
parent | 532a39a3754a3b8ce507414863023f8db21f9a7c (diff) | |
download | kernel_samsung_smdk4412-1c71e22e4e4b4e7261f147635518d5634136c226.tar.gz kernel_samsung_smdk4412-1c71e22e4e4b4e7261f147635518d5634136c226.tar.bz2 kernel_samsung_smdk4412-1c71e22e4e4b4e7261f147635518d5634136c226.zip |
[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: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/udf')
-rw-r--r-- | fs/udf/namei.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/udf/namei.c b/fs/udf/namei.c index 4673157b262..ac191ed7df0 100644 --- a/fs/udf/namei.c +++ b/fs/udf/namei.c @@ -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; |