From: zhengbin <zhengbin13@huawei.com>
To: <mszeredi@redhat.com>, <linux-fsdevel@vger.kernel.org>
Cc: <zhengbin13@huawei.com>
Subject: [PATCH 1/4] fuse: use true,false for bool variable in readdir.c
Date: Wed, 25 Dec 2019 11:02:27 +0800 [thread overview]
Message-ID: <1577242950-30981-2-git-send-email-zhengbin13@huawei.com> (raw)
In-Reply-To: <1577242950-30981-1-git-send-email-zhengbin13@huawei.com>
Fixes coccicheck warning:
fs/fuse/readdir.c:335:1-19: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
---
fs/fuse/readdir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fuse/readdir.c b/fs/fuse/readdir.c
index 6a40f75..90e3f01 100644
--- a/fs/fuse/readdir.c
+++ b/fs/fuse/readdir.c
@@ -332,7 +332,7 @@ static int fuse_readdir_uncached(struct file *file, struct dir_context *ctx)
return -ENOMEM;
plus = fuse_use_readdirplus(inode, ctx);
- ap->args.out_pages = 1;
+ ap->args.out_pages = true;
ap->num_pages = 1;
ap->pages = &page;
ap->descs = &desc;
--
2.7.4
next prev parent reply other threads:[~2019-12-25 2:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-25 3:02 [PATCH 0/4] fuse: use true,false for bool variable zhengbin
2019-12-25 3:02 ` zhengbin [this message]
2019-12-25 3:02 ` [PATCH 2/4] fuse: use true,false for bool variable in file.c zhengbin
2019-12-25 3:02 ` [PATCH 3/4] fuse: use true,false for bool variable in cuse.c zhengbin
2019-12-25 3:02 ` [PATCH 4/4] fuse: use true,false for bool variable in inode.c zhengbin
2020-01-14 10:02 ` [PATCH 0/4] fuse: use true,false for bool variable Miklos Szeredi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577242950-30981-2-git-send-email-zhengbin13@huawei.com \
--to=zhengbin13@huawei.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mszeredi@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).