]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arch/x86: Replace plain strings with constants
authorDaniel Kiper <daniel.kiper@oracle.com>
Mon, 30 Jun 2014 17:53:03 +0000 (19:53 +0200)
committerMatt Fleming <matt.fleming@intel.com>
Fri, 18 Jul 2014 20:23:59 +0000 (21:23 +0100)
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>
arch/x86/kernel/setup.c

index 78a0e6298922dc58e89f65a90afca3d467978a1f..41ead8d3bc0bb10110c4df9c595afbcee806df70 100644 (file)
@@ -924,10 +924,10 @@ void __init setup_arch(char **cmdline_p)
 #endif
 #ifdef CONFIG_EFI
        if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
-                    "EL32", 4)) {
+                    EFI32_LOADER_SIGNATURE, 4)) {
                set_bit(EFI_BOOT, &efi.flags);
        } else if (!strncmp((char *)&boot_params.efi_info.efi_loader_signature,
-                    "EL64", 4)) {
+                    EFI64_LOADER_SIGNATURE, 4)) {
                set_bit(EFI_BOOT, &efi.flags);
                set_bit(EFI_64BIT, &efi.flags);
        }