Skip to content

Commit

Permalink
[PATCH] udf: remove bogus inode == NULL check in inode_bmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Linus Torvalds committed Jan 9, 2006
1 parent 6b9c7ed commit b8b0af2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b8b0af2

Please sign in to comment.