Skip to content

Commit

Permalink
x86/e820: Use proper booleans instead of 0/1
Browse files Browse the repository at this point in the history
This fixes the following coccinelle warning:
./arch/x86/kernel/e820.c:89:9-10: WARNING: return of 0/1 in function '_e820__mapped_any' with return type bool

Return type bool instead of 0/1.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1563158829-44373-1-git-send-email-wang.yi59@zte.com.cn
  • Loading branch information
Yi Wang authored and Thomas Gleixner committed Jul 16, 2019
1 parent ec63355 commit f709f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ static bool _e820__mapped_any(struct e820_table *table,
continue;
if (entry->addr >= end || entry->addr + entry->size <= start)
continue;
return 1;
return true;
}
return 0;
return false;
}

bool e820__mapped_raw_any(u64 start, u64 end, enum e820_type type)
Expand Down

0 comments on commit f709f81

Please sign in to comment.