[PATCH v2] include: mman: Use bool instead of int for the return value of arch_validate_prot

2016-07-23 Thread chengang
From: Chen Gang For pure bool function's return value, bool is a little better more or less than int. Signed-off-by: Chen Gang --- arch/powerpc/include/asm/mman.h | 8 include/linux/mman.h| 2 +- 2 files changed, 5

[PATCH] include: mman: Use bool instead of int for the return value of arch_validate_prot

2016-07-09 Thread chengang
From: Chen Gang For pure bool function's return value, bool is a little better more or less than int. And return boolean result directly. Since 'if' statement is also for boolean checking, and return boolean result, too. Signed-off-by: Chen Gang