]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/befs/linuxvfs.c: remove positive test on sector_t
authorFabian Frederick <fabf@skynet.be>
Wed, 14 May 2014 00:02:44 +0000 (10:02 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 May 2014 00:02:44 +0000 (10:02 +1000)
sector_t is unsigned.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/befs/linuxvfs.c

index 1e27cd33f7f20a7449f9a80c8adb17c4a4598d60..ab3f6e171ea940c11ad96f44be632c763c30148e 100644 (file)
@@ -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,