x86/kaslr: Have process_mem_region() return a boolean
authorJing Yangyang <jing.yangyang@zte.com.cn>
Tue, 24 Aug 2021 07:05:15 +0000 (00:05 -0700)
committerBorislav Petkov <bp@suse.de>
Tue, 24 Aug 2021 08:54:15 +0000 (10:54 +0200)
commit5b3fd8aa5df0244fc19f2572598dee406bcc6b07
treecae4b44b63c2870907ef38e58a61a87399b1b53a
parentafc880cbb294026c2a43501cad26c21720f7078f
x86/kaslr: Have process_mem_region() return a boolean

Fix the following coccicheck warning:

  ./arch/x86/boot/compressed/kaslr.c:671:10-11:WARNING:return of 0/1
  in function 'process_mem_region' with return type bool

Generated by: scripts/coccinelle/misc/boolreturn.cocci

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Jing Yangyang <jing.yangyang@zte.com.cn>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210824070515.61065-1-deng.changcheng@zte.com.cn
arch/x86/boot/compressed/kaslr.c