Skip to content

Commit 3fa0fb7

Browse files
committed
Add (void)ret after CRYPTOCB_UNAVAILABLE fall-through reset in _InitCmac_common to acknowledge intentional store.
1 parent 24c40b5 commit 3fa0fb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

wolfcrypt/src/cmac.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ static int _InitCmac_common(Cmac* cmac, const byte* key, word32 keySz,
162162
if (ret != WC_NO_ERR_TRACE(CRYPTOCB_UNAVAILABLE)) {
163163
return ret;
164164
}
165-
/* fall-through when unavailable */
165+
/* fall-through when unavailable, reset ret for software path */
166166
ret = 0;
167+
(void)ret;
167168
}
168169
#else
169170
(void)devId;

0 commit comments

Comments
 (0)