diff options
author | Jiapeng Chong <[email protected]> | 2022-04-22 04:25:56 +0800 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2022-11-19 17:35:10 +0100 |
commit | ee92fa03918d114d3ac9c36a8bf2c032ede75a3b (patch) | |
tree | 97b8ec2145c04b0384f9ae5de89e404e8516865e | |
parent | 6426773410fd829c15b59575afe531d66abc7201 (diff) |
x86/kaslr: Fix process_mem_region()'s return value
Fix the following coccicheck warning:
./arch/x86/boot/compressed/kaslr.c:670:8-9: WARNING: return of 0/1 in
function 'process_mem_region' with return type bool.
Reported-by: Abaci Robot <[email protected]>
Signed-off-by: Jiapeng Chong <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | arch/x86/boot/compressed/kaslr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index e476bcbd9b42..454757fbdfe5 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -668,7 +668,7 @@ static bool process_mem_region(struct mem_vector *region, } } #endif - return 0; + return false; } #ifdef CONFIG_EFI |