]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/mce: Make several functions return bool
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Thu, 12 Dec 2024 14:00:57 +0000 (22:00 +0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 30 Dec 2024 18:05:50 +0000 (19:05 +0100)
commitc845cb8dbd2e1a804babfd13648026c3a7cfbc0b
tree7d8e7dc250593d1f8b9f08820e2efee9280afec6
parentfc033cf25e612e840e545f8d5ad2edd6ba613ed5
x86/mce: Make several functions return bool

Make several functions that return 0 or 1 return a boolean value for
better readability.

No functional changes are intended.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Nikolay Borisov <nik.borisov@suse.com>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Reviewed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Link: https://lore.kernel.org/r/20241212140103.66964-2-qiuxu.zhuo@intel.com
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/amd.c
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/intel.c