One more time to quiet clang tidy

This commit is contained in:
Bill Phipps
2024-09-24 13:43:56 -04:00
parent 5e1db686e1
commit 8aa63e3aad

View File

@ -299,12 +299,14 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz)
NULL);
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE))
return ret;
/* Clear CRYPTOCB_UNAVAILABLE return code */
ret = 0;
/* fall-through when unavailable */
}
#endif
if (ret == 0) {
switch (cmac->type) {
#if !defined(NO_AES) && defined(WOLFSSL_AES_DIRECT)
case WC_CMAC_AES:
@ -345,7 +347,7 @@ int wc_CmacFinalNoFree(Cmac* cmac, byte* out, word32* outSz)
default :
ret = BAD_FUNC_ARG;
}
}
return ret;
}