Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f38f41c3 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

fs/befs/linuxvfs.c: remove positive test on sector_t



sector_t is unsigned.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6cb103b6
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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,