Skip to content

Commit 9402973

Browse files
Daniel KiperMatt Fleming
authored andcommitted
arch/x86: Replace plain strings with constants
We've got constants, so let's use them instead of hard-coded values. Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
1 parent be81c8a commit 9402973

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/x86/kernel/setup.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,10 +924,10 @@ void __init setup_arch(char **cmdline_p)
924924
#endif
925925
#ifdef CONFIG_EFI
926926
if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
927-
"EL32", 4)) {
927+
EFI32_LOADER_SIGNATURE, 4)) {
928928
set_bit(EFI_BOOT, &efi.flags);
929929
} else if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
930-
"EL64", 4)) {
930+
EFI64_LOADER_SIGNATURE, 4)) {
931931
set_bit(EFI_BOOT, &efi.flags);
932932
set_bit(EFI_64BIT, &efi.flags);
933933
}

0 commit comments

Comments
 (0)