public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] lib:sha1: remove unused constant
@ 2014-07-10 18:12 Jeroen Hofstee
  2014-07-21 20:42 ` [U-Boot] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Jeroen Hofstee @ 2014-07-10 18:12 UTC (permalink / raw)
  To: u-boot

This prevents a clang warning.
Signed-off-by: Jeroen Hofstee <jeroen@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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] lib:sha1: remove unused constant
  2014-07-10 18:12 [U-Boot] [PATCH] lib:sha1: remove unused constant Jeroen Hofstee
@ 2014-07-21 20:42 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2014-07-21 20:42 UTC (permalink / raw)
  To: u-boot

On Thu, Jul 10, 2014 at 08:12:45PM +0200, Jeroen Hofstee wrote:

> This prevents a clang warning.
> Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140721/be9a9075/attachment.pgp>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-07-21 20:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-10 18:12 [U-Boot] [PATCH] lib:sha1: remove unused constant Jeroen Hofstee
2014-07-21 20:42 ` [U-Boot] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox