• R/O
  • HTTP
  • SSH
  • HTTPS

tomoyo-test1: Commit

This is a test repository.


Commit MetaInfo

Revision27acbf41be3928999b3a291fceee2a4b50218f00 (tree)
Zeit2020-05-12 08:39:53
AutorZou Wei <zou_wei@huaw...>
CommiterTetsuo Handa

Log Message

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>

Ändern Zusammenfassung

Diff

--- a/security/tomoyo/common.c
+++ b/security/tomoyo/common.c
@@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head,
10251025 if (domain)
10261026 head->r.domain = &domain->list;
10271027 else
1028- head->r.eof = 1;
1028+ head->r.eof = true;
10291029 tomoyo_io_printf(head, "# select %s\n", data);
10301030 if (domain && domain->is_deleted)
10311031 tomoyo_io_printf(head, "# This is a deleted domain.\n");
Show on old repository browser