]> Git Repo - linux.git/commitdiff
tomoyo: use true for bool variable
authorZou Wei <[email protected]>
Tue, 14 Apr 2020 08:19:48 +0000 (16:19 +0800)
committerTetsuo Handa <[email protected]>
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 <[email protected]>
Signed-off-by: Zou Wei <[email protected]>
Signed-off-by: Tetsuo Handa <[email protected]>
security/tomoyo/common.c

index 1b467381986f7f073d6cd62c4dab71493aaeaf60..c577525e43347bfc63e156a5bf41fe1ac31f4e98 100644 (file)
@@ -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");
This page took 0.059614 seconds and 4 git commands to generate.