Skip to contentSkip to conversation

fs: Use true,false for bool variable

PATCH New [email protected] 1 participant 1 message Nov 6, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs: Use true,false for bool variable

From: Kaixu Xia <[email protected]>

Fix the following coccinelle reports:

./fs/ioctl.c:355:4-12: WARNING: Assignment of 0/1 to bool variable

---
 fs/ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ioctl.c +1 -1
index 4e6cc0a7d69c..732876e302b5 100644
@@ -352,7 +352,7 @@ static int __generic_block_fiemap(struct inode *inode,
 			 */
 			if (!past_eof &&
 			    blk_to_logical(inode, start_blk) >= isize)
-				past_eof = 1;
+				past_eof = true;
 
 			/*
 			 * First hole after going past the EOF, this is our
Signature · 1 line
2.20.0