diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2022-04-21 22:25:56 +0200 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-11-19 17:35:10 +0100 |
commit | ee92fa03918d114d3ac9c36a8bf2c032ede75a3b (patch) | |
tree | 97b8ec2145c04b0384f9ae5de89e404e8516865e | |
parent | x86: Fix misc small issues (diff) | |
download | linux-ee92fa03918d114d3ac9c36a8bf2c032ede75a3b.tar.xz linux-ee92fa03918d114d3ac9c36a8bf2c032ede75a3b.zip |
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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220421202556.129799-1-jiapeng.chong@linux.alibaba.com
-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 |