udf: remove bool assignment to 0/1
authorFabian Frederick <fabf@skynet.be>
Wed, 4 Feb 2015 17:26:27 +0000 (18:26 +0100)
committerJan Kara <jack@suse.cz>
Thu, 5 Feb 2015 15:34:25 +0000 (16:34 +0100)
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/udf/inode.c

index 7b72b7dd8906b8b6c6e6b1d848f881969630b839..a445d599098d7ad1ccace2a81a86a0bc563af391 100644 (file)
@@ -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,