Skip to content

Commit 5b3fd8a

Browse files
Jing Yangyangsuryasaimadhu
authored andcommitted
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 <[email protected]> Signed-off-by: Jing Yangyang <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent afc880c commit 5b3fd8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
if (slot_area_index == MAX_SLOT_AREA) {
670670
debug_putstr("Aborted e820/efi memmap scan when walking immovable regions(slot_areas full)!\n");
671-
return 1;
671+
return true;
672672
}
673673
}
674674
#endif

0 commit comments

Comments
 (0)