summaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-04-14 16:19:48 +0800
committerTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>2020-05-12 08:39:53 +0900
commit27acbf41be3928999b3a291fceee2a4b50218f00 (patch)
tree93f052153fa671e62289d99f4460322ecfa8df5f /security
parent152036d1379ffd6985262743dcf6b0f9c75f83a4 (diff)
downloadlinux-27acbf41be3928999b3a291fceee2a4b50218f00.tar.bz2
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.c2
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");