Skip to content

Commit

Permalink
tomoyo: use true for bool variable
Browse files Browse the repository at this point in the history
Fixes coccicheck warning:

security/tomoyo/common.c:1028:2-13: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
  • Loading branch information
SamuelZOU authored and Tetsuo Handa committed May 11, 2020
1 parent 152036d commit 27acbf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/tomoyo/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 27acbf4

Please sign in to comment.