summaryrefslogtreecommitdiffstats
path: root/fs/befs/linuxvfs.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 23:36:16 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-07 01:08:09 +0200
commitf38f41c31b4596476f444d5419f8a7f1194c0840 (patch)
treeed9ca930e5a4380d5afd5d4c5122d1af3fffee36 /fs/befs/linuxvfs.c
parentfs/befs/btree.c: replace strncpy by strlcpy + coding style fixing (diff)
downloadlinux-f38f41c31b4596476f444d5419f8a7f1194c0840.tar.xz
linux-f38f41c31b4596476f444d5419f8a7f1194c0840.zip
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 '')
-rw-r--r--fs/befs/linuxvfs.c8
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,
befs_debug(sb, "---> befs_get_block() for inode %lu, block %ld",
(unsigned long)inode->i_ino, (long)block);
-
- if (block < 0) {
- befs_error(sb, "befs_get_block() was asked for a block "
- "number less than zero: block %ld in inode %lu",
- (long)block, (unsigned long)inode->i_ino);
- return -EIO;
- }
-
if (create) {
befs_error(sb, "befs_get_block() was asked to write to "
"block %ld in inode %lu", (long)block,