dect
/
linux-2.6
Archived
13
0
Fork 0

adfs: remove redundant test on unsigned

unsigned block cannot be less than 0.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Roel Kluin 2009-09-23 15:57:30 -07:00 committed by Linus Torvalds
parent 458e5ff13e
commit 3886de938c
1 changed files with 0 additions and 7 deletions

View File

@ -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;
}