This is a test repository.
Revision | 27acbf41be3928999b3a291fceee2a4b50218f00 (tree) |
---|---|
Zeit | 2020-05-12 08:39:53 |
Autor | Zou Wei <zou_wei@huaw...> |
Commiter | Tetsuo Handa |
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>
@@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head, | ||
1025 | 1025 | if (domain) |
1026 | 1026 | head->r.domain = &domain->list; |
1027 | 1027 | else |
1028 | - head->r.eof = 1; | |
1028 | + head->r.eof = true; | |
1029 | 1029 | tomoyo_io_printf(head, "# select %s\n", data); |
1030 | 1030 | if (domain && domain->is_deleted) |
1031 | 1031 | tomoyo_io_printf(head, "# This is a deleted domain.\n"); |