diff options
author | marcin.slusarz@gmail.com <marcin.slusarz@gmail.com> | 2008-02-03 19:36:06 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2008-04-17 14:22:29 +0200 |
commit | f18f17b0338a388ad87a2f8078dbbfb83798bdfd (patch) | |
tree | 9c0f5eab25aaa18469336d57617c0978b4fd1f46 /fs | |
parent | 01b954a36a03d90a66c9dd1fc13e4cb51269caf7 (diff) | |
download | op-kernel-dev-f18f17b0338a388ad87a2f8078dbbfb83798bdfd.zip op-kernel-dev-f18f17b0338a388ad87a2f8078dbbfb83798bdfd.tar.gz |
udf: udf_get_block, inode_bmap - remove unneeded checks
block cannot be less than 0, because it's sector_t,
so remove unneeded checks
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/udf/inode.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/udf/inode.c b/fs/udf/inode.c index ddd7780..fb92476 100644 --- a/fs/udf/inode.c +++ b/fs/udf/inode.c @@ -308,9 +308,6 @@ static int udf_get_block(struct inode *inode, sector_t block, lock_kernel(); - if (block < 0) - goto abort_negative; - iinfo = UDF_I(inode); if (block == iinfo->i_next_alloc_block + 1) { iinfo->i_next_alloc_block++; @@ -332,10 +329,6 @@ static int udf_get_block(struct inode *inode, sector_t block, abort: unlock_kernel(); return err; - -abort_negative: - udf_warning(inode->i_sb, "udf_get_block", "block < 0"); - goto abort; } static struct buffer_head *udf_getblk(struct inode *inode, long block, @@ -2051,11 +2044,6 @@ int8_t inode_bmap(struct inode *inode, sector_t block, int8_t etype; struct udf_inode_info *iinfo; - if (block < 0) { - printk(KERN_ERR "udf: inode_bmap: block < 0\n"); - return -1; - } - iinfo = UDF_I(inode); pos->offset = 0; pos->block = iinfo->i_location; |