From 3c370dcc242f677576f3aa514b79ba102f5cee7f Mon Sep 17 00:00:00 2001
From: jsing <>
Date: Sun, 28 May 2023 13:55:55 +0000
Subject: Remove now unnecessary do {} while(0);

---
 src/lib/libcrypto/sha/sha256.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

(limited to 'src/lib')

diff --git a/src/lib/libcrypto/sha/sha256.c b/src/lib/libcrypto/sha/sha256.c
index 689ee89454..8ee23f3474 100644
--- a/src/lib/libcrypto/sha/sha256.c
+++ b/src/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;
 }
-- 
cgit v1.2.3-55-g6feb