mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 05:32:00 +00:00
mm: use false for bool variable
Fixes coccicheck warnings: mm/zbud.c:246:1-20: WARNING: Assignment of 0/1 to bool variable mm/mremap.c:777:2-8: WARNING: Assignment of 0/1 to bool variable mm/huge_memory.c:525:9-10: WARNING: return of 0/1 in function 'is_transparent_hugepage' with return type bool Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/1586835930-47076-1-git-send-email-zou_wei@huawei.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
985ba004be
commit
fa1f68cc88
@ -522,7 +522,7 @@ void prep_transhuge_page(struct page *page)
|
||||
bool is_transparent_hugepage(struct page *page)
|
||||
{
|
||||
if (!PageCompound(page))
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
page = compound_head(page);
|
||||
return is_huge_zero_page(page) ||
|
||||
|
@ -785,7 +785,7 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
|
||||
out:
|
||||
if (offset_in_page(ret)) {
|
||||
vm_unacct_memory(charged);
|
||||
locked = 0;
|
||||
locked = false;
|
||||
}
|
||||
if (downgraded)
|
||||
up_read(¤t->mm->mmap_sem);
|
||||
|
Loading…
Reference in New Issue
Block a user