Skip to content

Commit

Permalink
udf: remove bool assignment to 0/1
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabian Frederick authored and Jan Kara committed Feb 5, 2015
1 parent 2b8f942 commit 6981498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/udf/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6981498

Please sign in to comment.