]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix boolreturn.cocci warning
authorChangcheng Deng <deng.changcheng@zte.com.cn>
Fri, 14 Jan 2022 22:07:21 +0000 (14:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Jan 2022 14:30:29 +0000 (16:30 +0200)
commit5794fc9a1f92869dc4ff4ed4da50ead2016db3b5
treeb42a10d70e2b598b9d2d6534abd501835e4eac3c
parente025c7b1b5eae7e079561b7579ef6f331c1927f5
mm: fix boolreturn.cocci warning

Return statements in functions returning bool should use true/false
instead of 1/0.

Link: https://lkml.kernel.org/r/20211126073327.74815-1-deng.changcheng@zte.com.cn
Signed-off-by: Changcheng Deng <deng.changcheng@zte.com.cn>
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/page-flags.h