mm/mlock.c: change can_do_mlock return value type to boolean
authorWang Xiaoqiang <wangxq10@lzu.edu.cn>
Sat, 16 Jan 2016 00:57:22 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 16 Jan 2016 01:56:32 +0000 (17:56 -0800)
commit7f43add451d2a0d235074b72d254ae266a6a023f
tree5fa15d58d7acf969f3bfc898250e0ec05eb10cd3
parent61e165578dc7ec4ee044e9ca581a315d9ca9c656
mm/mlock.c: change can_do_mlock return value type to boolean

Since can_do_mlock only return 1 or 0, so make it boolean.

No functional change.

[akpm@linux-foundation.org: update declaration in mm.h]
Signed-off-by: Wang Xiaoqiang <wangxq10@lzu.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/mm.h
mm/mlock.c