From: jsing Date: Thu, 28 Mar 2024 08:31:11 +0000 (+0000) Subject: Remove no unnecessary do { } while (0); X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=bb9decff9d7a29fe05e0e121b20d25dbe8562c07;p=openbsd Remove no unnecessary do { } while (0); --- diff --git a/lib/libcrypto/sm3/sm3.c b/lib/libcrypto/sm3/sm3.c index d19156a6a19..d98288a670e 100644 --- a/lib/libcrypto/sm3/sm3.c +++ b/lib/libcrypto/sm3/sm3.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sm3.c,v 1.11 2024/03/28 08:30:25 jsing Exp $ */ +/* $OpenBSD: sm3.c,v 1.12 2024/03/28 08:31:11 jsing Exp $ */ /* * Copyright (c) 2018, Ribose Inc * @@ -355,7 +355,6 @@ SM3_Final(unsigned char *md, SM3_CTX *c) c->num = 0; memset(p, 0, SM3_CBLOCK); - do { ll = (c)->A; HOST_l2c(ll, md); ll = (c)->B; @@ -372,7 +371,6 @@ SM3_Final(unsigned char *md, SM3_CTX *c) HOST_l2c(ll, md); ll = (c)->H; HOST_l2c(ll, md); - } while (0); return 1; }