[U-Boot] [PATCH] lib:sha1: remove unused constant

Jeroen Hofstee jeroen at myspectrum.nl
Thu Jul 10 20:12:45 CEST 2014


This prevents a clang warning.
Signed-off-by: Jeroen Hofstee <jeroen at myspectrum.nl>
---
lib/sha1.c:392:19: warning: unused variable '_sha1_src' [-Wunused-const-variable]
static const char _sha1_src[] = "_sha1_src";
                  ^
---
 lib/sha1.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/sha1.c b/lib/sha1.c
index 0a5f688..05b17a2 100644
--- a/lib/sha1.c
+++ b/lib/sha1.c
@@ -389,8 +389,6 @@ void sha1_hmac(const unsigned char *key, int keylen,
 	memset (&ctx, 0, sizeof (sha1_context));
 }
 
-static const char _sha1_src[] = "_sha1_src";
-
 #ifdef SELF_TEST
 /*
  * FIPS-180-1 test vectors
-- 
1.8.3.2



More information about the U-Boot mailing list