Add (void)ret after CRYPTOCB_UNAVAILABLE fall-through reset in _InitCmac_common to acknowledge intentional store.

This commit is contained in:
night1rider
2026-04-09 15:05:39 -06:00
parent 24c40b543b
commit 3fa0fb78f2
+2 -1
View File
@@ -162,8 +162,9 @@ static int _InitCmac_common(Cmac* cmac, const byte* key, word32 keySz,
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) {
return ret;
}
/* fall-through when unavailable */
/* fall-through when unavailable, reset ret for software path */
ret = 0;
(void)ret;
}
#else
(void)devId;