projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
152036d
)
tomoyo: use true for bool variable
author
Zou Wei
<zou_wei@huawei.com>
Tue, 14 Apr 2020 08:19:48 +0000
(16:19 +0800)
committer
Tetsuo Handa
<penguin-kernel@I-love.SAKURA.ne.jp>
Mon, 11 May 2020 23:39:53 +0000
(08:39 +0900)
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>
security/tomoyo/common.c
patch
|
blob
|
blame
|
history
diff --git
a/security/tomoyo/common.c
b/security/tomoyo/common.c
index 1b467381986f7f073d6cd62c4dab71493aaeaf60..c577525e43347bfc63e156a5bf41fe1ac31f4e98 100644
(file)
--- 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");