]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] udf_find_entry() cleanup
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Jun 2005 09:59:02 +0000 (02:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 30 Jun 2005 15:45:11 +0000 (08:45 -0700)
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>
fs/udf/namei.c

index 4673157b262f8d3d16f538a7408b97b5f36383da..ac191ed7df0ac74cf57ca06152fd2b5fcd6367f5 100644 (file)
@@ -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;