Commit 75c5b4aa authored by Roel Kluin's avatar Roel Kluin Committed by James Toy

unsigned block cannot be less than 0.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 201c9998
...@@ -19,9 +19,6 @@ static int ...@@ -19,9 +19,6 @@ static int
adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh,
int create) int create)
{ {
if (block < 0)
goto abort_negative;
if (!create) { if (!create) {
if (block >= inode->i_blocks) if (block >= inode->i_blocks)
goto abort_toobig; goto abort_toobig;
...@@ -34,10 +31,6 @@ adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh, ...@@ -34,10 +31,6 @@ adfs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh,
/* don't support allocation of blocks yet */ /* don't support allocation of blocks yet */
return -EIO; return -EIO;
abort_negative:
adfs_error(inode->i_sb, "block %d < 0", block);
return -EIO;
abort_toobig: abort_toobig:
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment