From: Heinrich Schuchardt Date: Fri, 31 Aug 2018 19:31:24 +0000 (+0200) Subject: test: print_ut.c use #if CONFIG_IS_ENABLED(EFI_LOADER) X-Git-Tag: v2018.11-rc1~82^2~101 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a9e6ee6eb83b1dd91032d246702555d7b5a8452;p=oweals%2Fu-boot.git test: print_ut.c use #if CONFIG_IS_ENABLED(EFI_LOADER) Using CONFIG_IS_ENABLED(EFI_LOADER) allows to simply the #if statements. Suggested-by: Alexander Graf Signed-off-by: Heinrich Schuchardt Signed-off-by: Alexander Graf --- diff --git a/test/print_ut.c b/test/print_ut.c index fb46db832e..f0f1d6010a 100644 --- a/test/print_ut.c +++ b/test/print_ut.c @@ -6,8 +6,7 @@ #define DEBUG #include -#if defined(CONFIG_EFI_LOADER) && \ - !defined(CONFIG_SPL_BUILD) && !defined(API_BUILD) +#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD) #include #endif #include @@ -19,8 +18,7 @@ /* Test efi_loader specific printing */ static void efi_ut_print(void) { -#if defined(CONFIG_EFI_LOADER) && \ - !defined(CONFIG_SPL_BUILD) && !defined(API_BUILD) +#if CONFIG_IS_ENABLED(EFI_LOADER) && !defined(API_BUILD) char str[10]; u8 buf[sizeof(struct efi_device_path_sd_mmc_path) + sizeof(struct efi_device_path)];