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

Commit 6981498d authored by Fabian Frederick's avatar Fabian Frederick Committed by Jan Kara
Browse files

udf: remove bool assignment to 0/1



Fix the following coccinelle warnings:

fs/udf/inode.c:753:2-13: WARNING: Assignment of bool to 0/1
fs/udf/inode.c:795:2-13: WARNING: Assignment of bool to 0/1

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent 2b8f9421
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -750,7 +750,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
	/* Are we beyond EOF? */
	if (etype == -1) {
		int ret;
		isBeyondEOF = 1;
		isBeyondEOF = true;
		if (count) {
			if (c)
				laarr[0] = laarr[1];
@@ -792,7 +792,7 @@ static sector_t inode_getblk(struct inode *inode, sector_t block,
		endnum = c + 1;
		lastblock = 1;
	} else {
		isBeyondEOF = 0;
		isBeyondEOF = false;
		endnum = startnum = ((count > 2) ? 2 : count);

		/* if the current extent is in position 0,