Skip to content

Commit 76b770d

Browse files
committed
update comment based on PR advise
1 parent 9238260 commit 76b770d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

wolfcrypt/src/cmac.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ int wc_InitCmac_ex(Cmac* cmac, const byte* key, word32 keySz,
115115
XMEMSET(cmac, 0, sizeof(Cmac));
116116

117117
#ifdef WOLF_CRYPTO_CB
118-
/* set invalid devId regardless of value */
118+
/* Set devId regardless of value (invalid or not) */
119119
cmac->devId = devId;
120120
#ifndef WOLF_CRYPTO_CB_FIND
121121
if (devId != INVALID_DEVID)
@@ -129,7 +129,6 @@ int wc_InitCmac_ex(Cmac* cmac, const byte* key, word32 keySz,
129129
return ret;
130130
/* fall-through when unavailable */
131131
}
132-
133132
#else
134133
(void)devId;
135134
#endif

0 commit comments

Comments
 (0)