mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-15 08:44:14 +08:00
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>
This commit is contained in:
parent
152036d137
commit
27acbf41be
@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head,
|
|||||||
if (domain)
|
if (domain)
|
||||||
head->r.domain = &domain->list;
|
head->r.domain = &domain->list;
|
||||||
else
|
else
|
||||||
head->r.eof = 1;
|
head->r.eof = true;
|
||||||
tomoyo_io_printf(head, "# select %s\n", data);
|
tomoyo_io_printf(head, "# select %s\n", data);
|
||||||
if (domain && domain->is_deleted)
|
if (domain && domain->is_deleted)
|
||||||
tomoyo_io_printf(head, "# This is a deleted domain.\n");
|
tomoyo_io_printf(head, "# This is a deleted domain.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user