diff --git a/wolfcrypt/src/hmac.c b/wolfcrypt/src/hmac.c index 963c4ab2b5..12fbc5c670 100644 --- a/wolfcrypt/src/hmac.c +++ b/wolfcrypt/src/hmac.c @@ -1019,8 +1019,6 @@ int wc_HmacUpdate(Hmac* hmac, const byte* msg, word32 length) ret = wc_CryptoCb_Hmac(hmac, hmac->macType, msg, length, NULL); if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) return ret; - /* fall-through when unavailable */ - ret = 0; /* reset error code */ } #endif #if defined(WOLFSSL_ASYNC_CRYPT) && defined(WC_ASYNC_ENABLE_HMAC)