* [PATCH] fs: Use true,false for bool variable
@ 2020-11-06 9:32 xiakaixu1987
0 siblings, 0 replies; only message in thread
From: xiakaixu1987 @ 2020-11-06 9:32 UTC (permalink / raw)
To: viro, hch; +Cc: linux-fsdevel, Kaixu Xia
From: Kaixu Xia <kaixuxia@tencent.com>
Fix the following coccinelle reports:
./fs/ioctl.c:355:4-12: WARNING: Assignment of 0/1 to bool variable
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
---
fs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 4e6cc0a7d69c..732876e302b5 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -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
--
2.20.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-06 9:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 9:32 [PATCH] fs: Use true,false for bool variable xiakaixu1987
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).