projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
458e5ff
)
adfs: remove redundant test on unsigned
author
Roel Kluin
<
[email protected]
>
Wed, 23 Sep 2009 22:57:30 +0000
(15:57 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 24 Sep 2009 14:21:05 +0000
(07:21 -0700)
unsigned block cannot be less than 0.
Signed-off-by: Roel Kluin <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/adfs/inode.c
patch
|
blob
|
history
diff --git
a/fs/adfs/inode.c
b/fs/adfs/inode.c
index 798cb071d1329a45cb3fe95d1a84161167f4084e..3f57ce4bee5d4371649c2a67354dcc16f4eacb48 100644
(file)
--- a/
fs/adfs/inode.c
+++ b/
fs/adfs/inode.c
@@
-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;
}