Skip to content

Commit

Permalink
x86/kaslr: Fix process_mem_region()'s return value
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jiapeng Chong authored and Borislav Petkov committed Nov 19, 2022
1 parent 6426773 commit ee92fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/boot/compressed/kaslr.c
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ static bool process_mem_region(struct mem_vector *region,
}
}
#endif
return 0;
return false;
}

#ifdef CONFIG_EFI
Expand Down

0 comments on commit ee92fa0

Please sign in to comment.