diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 17:36:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 19:08:09 -0400 |
commit | f38f41c31b4596476f444d5419f8a7f1194c0840 (patch) | |
tree | ed9ca930e5a4380d5afd5d4c5122d1af3fffee36 /fs/befs | |
parent | 6cb103b6f45ac0cf3b948457342e5cdcdaf49adc (diff) |
fs/befs/linuxvfs.c: remove positive test on sector_t
sector_t is unsigned.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/befs')
-rw-r--r-- | fs/befs/linuxvfs.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 1e27cd33f7f2..ab3f6e171ea9 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -133,14 +133,6 @@ befs_get_block(struct inode *inode, sector_t block, | |||
133 | 133 | ||
134 | befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", | 134 | befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld", |
135 | (unsigned long)inode->i_ino, (long)block); | 135 | (unsigned long)inode->i_ino, (long)block); |
136 | |||
137 | if (block < 0) { | ||
138 | befs_error(sb, "befs_get_block() was asked for a block " | ||
139 | "number less than zero: block %ld in inode %lu", | ||
140 | (long)block, (unsigned long)inode->i_ino); | ||
141 | return -EIO; | ||
142 | } | ||
143 | |||
144 | if (create) { | 136 | if (create) { |
145 | befs_error(sb, "befs_get_block() was asked to write to " | 137 | befs_error(sb, "befs_get_block() was asked to write to " |
146 | "block %ld in inode %lu", (long)block, | 138 | "block %ld in inode %lu", (long)block, |