* [PATCH] vfs: use true,false for bool variable
@ 2019-12-25 2:40 zhengbin
0 siblings, 0 replies; only message in thread
From: zhengbin @ 2019-12-25 2:40 UTC (permalink / raw)
To: viro, linux-fsdevel; +Cc: zhengbin13
Fixes coccicheck warning:
fs/ioctl.c:351:4-12: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
fs/ioctl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ioctl.c b/fs/ioctl.c
index 7c9a5df..5121c45 100644
--- a/fs/ioctl.c
+++ b/fs/ioctl.c
@@ -348,7 +348,7 @@ 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.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2019-12-25 2:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-25 2:40 [PATCH] vfs: use true,false for bool variable zhengbin
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).