diff options
Diffstat (limited to 'fs/udf/inode.c')
-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 ddd7780d1ab1..fb92476fcdd9 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, | |||
308 | 308 | ||
309 | lock_kernel(); | 309 | lock_kernel(); |
310 | 310 | ||
311 | if (block < 0) | ||
312 | goto abort_negative; | ||
313 | |||
314 | iinfo = UDF_I(inode); | 311 | iinfo = UDF_I(inode); |
315 | if (block == iinfo->i_next_alloc_block + 1) { | 312 | if (block == iinfo->i_next_alloc_block + 1) { |
316 | iinfo->i_next_alloc_block++; | 313 | iinfo->i_next_alloc_block++; |
@@ -332,10 +329,6 @@ static int udf_get_block(struct inode *inode, sector_t block, | |||
332 | abort: | 329 | abort: |
333 | unlock_kernel(); | 330 | unlock_kernel(); |
334 | return err; | 331 | return err; |
335 | |||
336 | abort_negative: | ||
337 | udf_warning(inode->i_sb, "udf_get_block", "block < 0"); | ||
338 | goto abort; | ||
339 | } | 332 | } |
340 | 333 | ||
341 | static struct buffer_head *udf_getblk(struct inode *inode, long block, | 334 | 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, | |||
2051 | int8_t etype; | 2044 | int8_t etype; |
2052 | struct udf_inode_info *iinfo; | 2045 | struct udf_inode_info *iinfo; |
2053 | 2046 | ||
2054 | if (block < 0) { | ||
2055 | printk(KERN_ERR "udf: inode_bmap: block < 0\n"); | ||
2056 | return -1; | ||
2057 | } | ||
2058 | |||
2059 | iinfo = UDF_I(inode); | 2047 | iinfo = UDF_I(inode); |
2060 | pos->offset = 0; | 2048 | pos->offset = 0; |
2061 | pos->block = iinfo->i_location; | 2049 | pos->block = iinfo->i_location; |