]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: boot_service_capability_min should be capitalized
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Mon, 6 Sep 2021 03:04:12 +0000 (12:04 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 11 Sep 2021 09:02:02 +0000 (11:02 +0200)
boot_service_capability_min is constant, it should be capitalized.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/efi_tcg2.h
lib/efi_loader/efi_tcg2.c

index c99384fb005d89d81a999d5740bc6d44de977a5f..5a1a36212e55c21fa0348ca760457cc6d2b8adcc 100644 (file)
@@ -130,7 +130,7 @@ struct efi_tcg2_boot_service_capability {
 };
 
 /* up to and including the vendor ID (manufacturer_id) field */
-#define boot_service_capability_min \
+#define BOOT_SERVICE_CAPABILITY_MIN \
        offsetof(struct efi_tcg2_boot_service_capability, number_of_pcr_banks)
 
 #define TCG_EFI_SPEC_ID_EVENT_SIGNATURE_03 "Spec ID Event03"
index b268a02976c2969f504f56472049c961cf3eb285..62ae102033f8b80e290b44bb009a62c5912f5951 100644 (file)
@@ -607,8 +607,8 @@ efi_tcg2_get_capability(struct efi_tcg2_protocol *this,
                goto out;
        }
 
-       if (capability->size < boot_service_capability_min) {
-               capability->size = boot_service_capability_min;
+       if (capability->size < BOOT_SERVICE_CAPABILITY_MIN) {
+               capability->size = BOOT_SERVICE_CAPABILITY_MIN;
                efi_ret = EFI_BUFFER_TOO_SMALL;
                goto out;
        }