Message ID | 1577241628-131521-1-git-send-email-zhengbin13@huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | vfs: use true,false for bool variable | expand |
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
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(-) -- 2.7.4