]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] udf: remove bogus inode == NULL check in inode_bmap
authorChristoph Hellwig <hch@lst.de>
Sun, 8 Jan 2006 09:02:33 +0000 (01:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:51 +0000 (20:13 -0800)
inode can never be NULL when calling this function.

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/inode.c

index 4014f17d382e70ddc3662521515347748af01910..395e582ee5425cab1ad65177d5f8c02bedc9e932 100644 (file)
@@ -1957,11 +1957,6 @@ int8_t inode_bmap(struct inode *inode, int block, kernel_lb_addr *bloc, uint32_t
                printk(KERN_ERR "udf: inode_bmap: block < 0\n");
                return -1;
        }
-       if (!inode)
-       {
-               printk(KERN_ERR "udf: inode_bmap: NULL inode\n");
-               return -1;
-       }
 
        *extoffset = 0;
        *elen = 0;