summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2023-05-28 13:55:56 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2023-05-28 13:55:56 +0000
commit47a9da9fc312db7b749f562d1bb331575a9e1573 (patch)
treef01189a499e3948ef5c9d8c247af7e42632a6ad9
parenta3566e088d4471574e6ab3b1fdacabf029593c85 (diff)
Remove now unnecessary do {} while(0);
-rw-r--r--lib/libcrypto/sha/sha256.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libcrypto/sha/sha256.c b/lib/libcrypto/sha/sha256.c
index 689ee894549..8ee23f34743 100644
--- a/lib/libcrypto/sha/sha256.c
+++ b/lib/libcrypto/sha/sha256.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sha256.c,v 1.17 2023/05/28 13:53:08 jsing Exp $ */
+/* $OpenBSD: sha256.c,v 1.18 2023/05/28 13:55:55 jsing Exp $ */
/* ====================================================================
* Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
*
@@ -267,7 +267,6 @@ SHA256_Final(unsigned char *md, HASH_CTX *c)
* Idea behind separate cases for pre-defined lengths is to let the
* compiler decide if it's appropriate to unroll small loops.
*/
- do {
switch (c->md_len) {
case SHA224_DIGEST_LENGTH:
for (nn = 0; nn < SHA224_DIGEST_LENGTH / 4; nn++) {
@@ -292,7 +291,6 @@ SHA256_Final(unsigned char *md, HASH_CTX *c)
}
break;
}
- } while (0);
return 1;
}