From bc9c7ccc87bee1659a586171eeb19c7474023095 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Thu, 14 Dec 2023 13:16:53 -0500 Subject: [PATCH] lib/sha*.c: Update header list Cleanup the list of headers we include here. For the tools build we only need to exclude as that's used by the target build for the prototype for schedule(), and we don't need to get that via . We can also make use of our intentionally existing as a redirection to to reduce ifdef'd lines. Reviewed-by: Simon Glass Signed-off-by: Tom Rini --- lib/sha1.c | 7 ++----- lib/sha256.c | 7 ++----- lib/sha512.c | 6 +----- 3 files changed, 5 insertions(+), 15 deletions(-) diff --git a/lib/sha1.c b/lib/sha1.c index 8d07407893..7ef536f4b5 100644 --- a/lib/sha1.c +++ b/lib/sha1.c @@ -17,12 +17,9 @@ #endif #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ -#include +#include #include #include diff --git a/lib/sha256.c b/lib/sha256.c index 4d26aea1c8..665ba6f152 100644 --- a/lib/sha256.c +++ b/lib/sha256.c @@ -6,12 +6,9 @@ */ #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ -#include +#include #include #include diff --git a/lib/sha512.c b/lib/sha512.c index fbe8d5f5bf..ffe2c5cd96 100644 --- a/lib/sha512.c +++ b/lib/sha512.c @@ -11,13 +11,9 @@ */ #ifndef USE_HOSTCC -#include -#include -#else -#include +#include #endif /* USE_HOSTCC */ #include -#include #include const uint8_t sha384_der_prefix[SHA384_DER_LEN] = { -- 2.39.5