diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-04-14 16:19:48 +0800 |
---|---|---|
committer | Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> | 2020-05-12 08:39:53 +0900 |
commit | 27acbf41be3928999b3a291fceee2a4b50218f00 (patch) | |
tree | 93f052153fa671e62289d99f4460322ecfa8df5f /security | |
parent | 152036d1379ffd6985262743dcf6b0f9c75f83a4 (diff) | |
download | linux-27acbf41be3928999b3a291fceee2a4b50218f00.tar.gz linux-27acbf41be3928999b3a291fceee2a4b50218f00.tar.bz2 linux-27acbf41be3928999b3a291fceee2a4b50218f00.zip |
tomoyo: use true for bool variable
Fixes coccicheck warning:
security/tomoyo/common.c:1028:2-13: WARNING: Assignment of 0/1 to bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Diffstat (limited to 'security')
-rw-r--r-- | security/tomoyo/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 1b467381986f..c577525e4334 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c @@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head, if (domain) head->r.domain = &domain->list; else - head->r.eof = 1; + head->r.eof = true; tomoyo_io_printf(head, "# select %s\n", data); if (domain && domain->is_deleted) tomoyo_io_printf(head, "# This is a deleted domain.\n"); |