Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91820
b: refs/heads/master
c: f18f17b
h: refs/heads/master
v: v3
  • Loading branch information
marcin.slusarz@gmail.com authored and Jan Kara committed Apr 17, 2008
1 parent 22ed296 commit 8592007
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 01b954a36a03d90a66c9dd1fc13e4cb51269caf7
refs/heads/master: f18f17b0338a388ad87a2f8078dbbfb83798bdfd
12 changes: 0 additions & 12 deletions trunk/fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -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,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8592007

Please sign in to comment.