From: Fabian Frederick Date: Wed, 14 May 2014 00:02:44 +0000 (+1000) Subject: fs/befs/linuxvfs.c: remove positive test on sector_t X-Git-Tag: next-20140516~2^2~94 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=148e457fb1a1fa0746c06a64b653d0e94100daf7;p=karo-tx-linux.git fs/befs/linuxvfs.c: remove positive test on sector_t sector_t is unsigned. Signed-off-by: Fabian Frederick Signed-off-by: Andrew Morton --- 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,