Skip to content

Commit ee92fa0

Browse files
wb-zjp846396suryasaimadhu
authored andcommitted
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
1 parent 6426773 commit ee92fa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/boot/compressed/kaslr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ static bool process_mem_region(struct mem_vector *region,
668668
}
669669
}
670670
#endif
671-
return 0;
671+
return false;
672672
}
673673

674674
#ifdef CONFIG_EFI

0 commit comments

Comments
 (0)