From: Roel Kluin Date: Wed, 23 Sep 2009 22:57:30 +0000 (-0700) Subject: adfs: remove redundant test on unsigned X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3886de938cc23d5208a34064d8363d6d7b54b461;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git adfs: remove redundant test on unsigned unsigned block cannot be less than 0. Signed-off-by: Roel Kluin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/adfs/inode.c b/fs/adfs/inode.c index 798cb071d132..3f57ce4bee5d 100644 --- a/fs/adfs/inode.c +++ b/fs/adfs/inode.c @@ -19,9 +19,6 @@ static int adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, int create) { - if (block < 0) - goto abort_negative; - if (!create) { if (block >= inode->i_blocks) goto abort_toobig; @@ -34,10 +31,6 @@ adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, /* don't support allocation of blocks yet */ return -EIO; -abort_negative: - adfs_error(inode->i_sb, "block %d < 0", block); - return -EIO; - abort_toobig: return 0; }